From 62fdce8cad0f975b12aee3a3aa2bab76fd439463 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 5 Jun 2025 08:44:55 +0000 Subject: [PATCH] Replace select2 detection --- public/scripts/world-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index c0ace1b7a..f0999de86 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -1960,7 +1960,7 @@ function clearEntryList() { $list.find('select').each(function () { const $select = $(this); // Remove Select2-related data and container if present - if ($select.hasClass('select2-hidden-accessible')) { + if ($select.data('select2')) { try { $select.select2('destroy'); } catch (e) {