Skip to content

Commit 40df7ff

Browse files
authored
fix: prevent duplicated select2 dropdowns (#1458)
1 parent 9649b18 commit 40df7ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unfold/static/unfold/js/select2.init.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
return;
99
}
1010

11+
if ($(element).hasClass("select2-hidden-accessible")) {
12+
return;
13+
}
14+
1115
$(element).select2();
1216
});
1317

0 commit comments

Comments
 (0)