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 () {
|
$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) {
|
||||||
|
Reference in New Issue
Block a user