Form is submitable when parse fails but validation succeeds. #29

Closed
opened 2024-06-17 19:08:36 +00:00 by mitchell · 1 comment
Owner

On submit, only the validation is checked, but if the parse fails that validation could still return true.

On submit, only the validation is checked, but if the parse fails that validation could still return true.
Author
Owner

fixed by checking the current validation state. This technically allows a case where if the initial value of the form data fails to parse (only possible if data doesn't round trip) then that will not be detected

fixed by checking the current validation state. This technically allows a case where if the initial value of the form data fails to parse (only possible if data doesn't round trip) then that will not be detected
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: MarinoDev/leptos_form_tool#29
No description provided.