+2
-2
lines changedFilter options
+2
-2
lines changed Original file line number Diff line number Diff line change
@@ -224,12 +224,12 @@ function setSelected(el: HTMLSelectElement, value: any) {
224
224
}
225
225
} else {
226
226
if (looseEqual(getValue(option), value)) {
227
-
el.selectedIndex = i
227
+
if (el.selectedIndex !== i) el.selectedIndex = i
228
228
return
229
229
}
230
230
}
231
231
}
232
-
if (!isMultiple) {
232
+
if (!isMultiple && el.selectedIndex !== -1) {
233
233
el.selectedIndex = -1
234
234
}
235
235
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4