Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple, toggle: Removing items doesn't work correctly when toggled items exist earlier in the selection #242

Open
ReformCopyright opened this issue Jul 31, 2022 · 0 comments

Comments

@ReformCopyright
Copy link

Because in multiple.remove, index = $li.index() counts the disabled <li> elements, which are not represented in the _this.value array. We need to look up the value to remove in _this.value or find the correct index with something like $multiple.find('li:not(.input-container):not(.disabled)').index($li).

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

No branches or pull requests

1 participant