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

AutoHide option causes reopening of DropDown if the trigger is clicked #1045

Open
learnny opened this issue Jul 17, 2024 · 0 comments
Open

Comments

@learnny
Copy link

learnny commented Jul 17, 2024

If :auto-hide is set to true and the trigger is set to "click", the DropDown is reopened if i click on the trigger to close the popper.

This is caused by the mouse-up event. So if the dropdown is open and i now click the trigger button to close it, the mouse-down event closes the dropdown and the mouse-up event reopens it.

An option to ignore the mouse-up event completely would be nice, but idk maybe there is a better way.

As a workaround i disabled the auto-hide option and used a click-outside directive to close the popper when clicked anywhere on the page.

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