Replace select2 detection

This commit is contained in:
Cohee
2025-06-05 08:44:55 +00:00
parent bbe62527d2
commit 62fdce8cad

View File

@@ -1960,7 +1960,7 @@ function clearEntryList() {
$list.find('select').each(function () { $list.find('select').each(function () {
const $select = $(this); const $select = $(this);
// Remove Select2-related data and container if present // Remove Select2-related data and container if present
if ($select.hasClass('select2-hidden-accessible')) { if ($select.data('select2')) {
try { try {
$select.select2('destroy'); $select.select2('destroy');
} catch (e) { } catch (e) {