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
Close when clicking on parent #239
Comments
Thank you for the feedback 😄 .
|
Thanks for the reply - much appreciated - hadn't used the toggle function so will give that a go... I should have read more carefully! All the best. |
LMK if it doesn't works 🙇♂️ . |
@timchesney I noticed you reopen this issue. Does this still not work 🤔 ? |
Firstly - great component, thanks!
Idea/Issue
It feels natural to be able to close the dropdown by clicking on the main element (e.g. the input) again.
Currently, doing so causes a 'flash' where the dropdown closes on mouseDown but then opens again on mouseUp.
Secondly, if you use the 'Toggle' slot for a custom toggle icon, clicking this no longer works to close the dropdown.
Solution
Either make it the default behaviour or provide an option to make clicking anywhere on the main element close the dropdown.
GIF to show what I mean
Thanks again.
The text was updated successfully, but these errors were encountered: