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

Fix dropdown not opening on overriden selected-option slots (#790) #904

Closed

Conversation

alxgb
Copy link

@alxgb alxgb commented Jul 10, 2019

Even though #869 is open it seems to be a larger change, and as far as I can tell it's not really fixed, the only commit is a cleanup of toggleDropdown. Since the issue is tagged "help-wanted" anyway, I'm opening this

This fix (for #790) is fairly simple, instead of checking for vs__selected we check whether the target is a child node of the selectedOptions ref. I then realized that with this, clicking the deselect button would open the dropdown, which felt a bit weird, so I added the bit of extra logic to exclude those.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.9%) to 95.5% when pulling 2fba199 on alxgb:fix-790-dropdown-open-in-selected-option into 8ef15a1 on sagalbot:master.

@wrabit
Copy link

wrabit commented Aug 3, 2019

Please merge 🙏🙏✌️

@sagalbot
Copy link
Owner

sagalbot commented Dec 2, 2019

This is fixed in 3.3 via #992.

@sagalbot sagalbot closed this Dec 2, 2019
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

Successfully merging this pull request may close these issues.

None yet

4 participants