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 template fires twice when submitted using enter key #7

Open
leolorenzoluis opened this issue Aug 5, 2022 · 4 comments
Open

Form template fires twice when submitted using enter key #7

leolorenzoluis opened this issue Aug 5, 2022 · 4 comments

Comments

@leolorenzoluis
Copy link

No description provided.

@JordanMarr
Copy link
Owner

Did you use e.preventDefault()?

<form @submit={Ev (fun e -> e.preventDefault(); save())}>

</form>

@leolorenzoluis
Copy link
Author

Yes

@JordanMarr
Copy link
Owner

And you are using a <input type="submit"> button?

@leolorenzoluis
Copy link
Author

Correct, I also tried what others said e.stopImmediatePropagation();

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