mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Replace select2 detection
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user