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

Option to prevent modal to open twice #165

Open
GustavoBonfimS opened this issue Dec 10, 2024 · 0 comments
Open

Option to prevent modal to open twice #165

GustavoBonfimS opened this issue Dec 10, 2024 · 0 comments

Comments

@GustavoBonfimS
Copy link

I faced a problem where a user double-tapped a button that opens a modal, causing it to open twice.
I created a workaround using the currentModal returned by openModal to verify if the target modal was already presented. However, this solution doesn't work all the time; if the user clicks too quickly, the modal still becomes visible twice.

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