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
def handle_event("validate", params, socket) do end
Submitting the form takes you to a new LiveView which does not handle the validate event.
Actual behavior
When I submit the form by pressing the Enter key without clicking out of the field, the next page receives the validate event and briefly throws an error before reloading.
Expected behavior
When I submit the form by pressing the Enter key without clicking out of the field, the validate event is never fired, and I go to the next page without validations.
OR
The validate event is fired on my original page before attempting to move to the next page.
The text was updated successfully, but these errors were encountered:
Environment
Setup
My HEEX template looks something like this (simplified)
In the same live view I've defined
Submitting the form takes you to a new LiveView which does not handle the
validate
event.Actual behavior
When I submit the form by pressing the Enter key without clicking out of the field, the next page receives the
validate
event and briefly throws an error before reloading.Expected behavior
When I submit the form by pressing the Enter key without clicking out of the field, the
validate
event is never fired, and I go to the next page without validations.OR
The
validate
event is fired on my original page before attempting to move to the next page.The text was updated successfully, but these errors were encountered: