You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
Description
I would like to stop the validation event to be called when I press the enter key in the form. Indeed I have a custom autocomplete widget and a lot of people press enter key to validate it. But it calls validation and it's very disturbing but I don't find a solution to stop it.
I would like to do somthing like this :
submitAction(event) {
if (event.which === 13 /* Enter */) {
event.preventDefault();
}
}
But the function I call in onSubmit is not called after an enter key press.
Expected behavior
Validation is not triggered when I press the enter key
Actual behavior
Pressing enter key call validation form.
If you have any ideas please help me :)
Thank you !
The text was updated successfully, but these errors were encountered:
Prerequisites
Description
I would like to stop the validation event to be called when I press the enter key in the form. Indeed I have a custom autocomplete widget and a lot of people press enter key to validate it. But it calls validation and it's very disturbing but I don't find a solution to stop it.
I would like to do somthing like this :
But the function I call in onSubmit is not called after an enter key press.
Expected behavior
Validation is not triggered when I press the enter key
Actual behavior
Pressing enter key call validation form.
If you have any ideas please help me :)
Thank you !
The text was updated successfully, but these errors were encountered: