You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
"remove" method for HTMLSelectElement expects an index as argument, but the option itself is supplied. This causes the first option to be removed instead of desired option.
Solution is calling this.el.remove(index) or this.el.remove(option.idx)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I found a bug when removing a option, the bug is removing the original option from "this.el":
Selectr/src/selectr.js
Line 1919 in 3d8964d
"remove" method for HTMLSelectElement expects an index as argument, but the option itself is supplied. This causes the first option to be removed instead of desired option.
Solution is calling this.el.remove(index) or this.el.remove(option.idx)
The text was updated successfully, but these errors were encountered: