Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Bug found when removing item #152

Open
NitemareReal opened this issue Dec 5, 2021 · 0 comments
Open

Bug found when removing item #152

NitemareReal opened this issue Dec 5, 2021 · 0 comments

Comments

@NitemareReal
Copy link

I found a bug when removing a option, the bug is removing the original option from "this.el":

this.el.remove(option);

"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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant