Repository navigation
fix(questions): let a corrected short answer submit right away - #4033
Open
AndyScherzinger wants to merge 1 commit into
Open
AndyScherzinger wants to merge 1 commit into
AndyScherzinger wants to merge 1 commit into
Conversation
A short answer kept its custom validity until the debounced check ran, so submitting right after correcting an answer was silently blocked by the browser. The answer now drops its custom validity as soon as it is edited; submitting still validates every question. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 task done
AndyScherzinger
marked this pull request as ready for review
November 26, 2026 10:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A short answer with an input type (email, phone, number, regex) keeps its custom validity after an error until the debounced check runs 400 ms after the last keystroke. A respondent who corrects the answer and submits within that window gets nothing: the browser blocks the submit because of the stale custom validity, and no error is shown.
What changes
validate()on every question, so an answer that is still invalid keeps the submit blocked and shows its error.How to test
not an email, submit: the error shows.playwright/e2e/submit-form.spec.tsgets a test for this; it fails onmainand passes with the fix. Checked in the logged-in app; the public link and embedded form use the same component.🤖 AI (if applicable)