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

Form submits twice when using with Vue modal. #131

Open
airliajsmith opened this issue Nov 16, 2020 · 0 comments
Open

Form submits twice when using with Vue modal. #131

airliajsmith opened this issue Nov 16, 2020 · 0 comments

Comments

@airliajsmith
Copy link

I am using Sweetalert with a Vue modal. When I click Submit on the modal form, the alert pops up. That works fine.

However, if I accidentally click where the modal submit button was (you cannot see it because the Sweetalert window is open), it will submit the modal form twice. It only occurs if I click too soon. Not sure if it's because the Sweetalert window hasn't fully loaded? I'm a bit click-happy.

Any ideas on how to prevent this issue? I tried to add this to my modal: @submit.once, but then I can't click "ok" on the Sweetalert window.

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