Skip to content

Commit 95a72db

Browse files
committed
Quick fix for Chromium v140 select issue
1 parent 4a5b646 commit 95a72db

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/js/utils/common.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ export function urlExists(url) {
9292
*/
9393

9494
$.fn.sortSelect = function (text = "") {
95+
96+
/*
97+
98+
Chrome 140 does not work when we use this function on select element directly
99+
100+
Temporary disable sorting for now
101+
95102
const op = this.children("option");
96103
97104
op.sort((a, b) => {
@@ -105,4 +112,9 @@ $.fn.sortSelect = function (text = "") {
105112
});
106113
107114
return this.empty().append(op);
115+
116+
*/
117+
118+
return this;
119+
108120
};

0 commit comments

Comments
 (0)