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

Preventing form submits after pressing enter key in inputs #310

Open
llagong opened this issue May 19, 2022 · 1 comment
Open

Preventing form submits after pressing enter key in inputs #310

llagong opened this issue May 19, 2022 · 1 comment

Comments

@llagong
Copy link

llagong commented May 19, 2022

We are currently using the color picker inside a form.

Is there a way to override the default behavior of submitting the form when pressing the 'Enter' key while editing an input field inside the color picker?

image

@llagong
Copy link
Author

llagong commented May 19, 2022

I am willing to contribute. It seems that adding a event.preventDefault() in the code is a sufficient solution.

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