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

How to prevent autoclose menu after selecting option? #70

Open
Pawel-Zygmunt opened this issue Sep 20, 2023 · 1 comment
Open

How to prevent autoclose menu after selecting option? #70

Pawel-Zygmunt opened this issue Sep 20, 2023 · 1 comment

Comments

@Pawel-Zygmunt
Copy link

Do I need to control this with my own state and use this instead $menu.expanded, handle outside click and so on? Or is there an easier way ?

@CaptainCodeman
Copy link
Owner

I think the best approach might be to allow control via the event itself (e.g. preventDefault or return false) - I'll have a play around and see what feels right.

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

2 participants