Skip to content

fix(forms): clear stale validation errors on resubmit - #3219

Open
mettta wants to merge 1 commit into
mainfrom
mettta/fix-stale-form-error-on-resubmit
Open

mettta wants to merge 1 commit into
mainfrom
mettta/fix-stale-form-error-on-resubmit

Conversation

@mettta

@mettta mettta commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Previously the old markup and errors="true" attributes stayed in the DOM until the server responded to a resubmitted form, so a fixed value still showed the earlier error while saving was in progress. Clear them on turbo:submit-start instead of waiting for the response.

Previously the old <sdoc-form-error> markup and errors="true" attributes
stayed in the DOM until the server responded to a resubmitted form, so a
fixed value still showed the earlier error while saving was in progress.
Clear them on turbo:submit-start instead of waiting for the response.
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

Successfully merging this pull request may close these issues.

1 participant