Repository navigation
fix(pat-validation): Do not share errors between same-named inputs. - #1313
Merged
Merged
Conversation
Assisted-by: Claude Opus 5.5
Only errors which belong to the group of inputs with the same name - min-values, max-values and a required radio group - are shared between these inputs. All other errors belong to the single input. Before, checking one input cleared the errors of all inputs with the same name. E.g. a date and a time input with the same name: checking the time input cleared the not-after error of the date input and an invalid form could be submitted. This was a regression in 9.12.0-alpha.1. The group error is computed the same way by any input of the group, also if min-values or max-values is defined on only one input. The group error message is shown once after the last input of the group and only if no input of the group shows its own error. Breaking change for JavaScript users: set_error() and remove_error() only affect the given input. remove_error() defaults to all_of_group = false. The new methods check_group(), render_error_message() and render_group_error_message() handle the group errors and messages. Ref: ADR 0008 Assisted-by: Claude Opus 5.5
thet
force-pushed
the
thet/fix-validation-groups
branch
from
November 29, 2026 09:42
0b75da0 to
1021419
Compare
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.
Only errors which belong to the group of inputs with the same name -
min-values, max-values and a required radio group - are shared between
these inputs. All other errors belong to the single input.
Before, checking one input cleared the errors of all inputs with the same
name. E.g. a date and a time input with the same name: checking the time
input cleared the not-after error of the date input and an invalid form
could be submitted. This was a regression since 9.11.1.
The group error is computed the same way by any input of the group, also
if min-values or max-values is defined on only one input. The group error
message is shown once after the last input of the group and only if no
input of the group shows its own error.
Breaking change for JavaScript users: set_error() and remove_error() only
affect the given input. remove_error() defaults to all_of_group = false.
The new methods check_group(), render_error_message() and
render_group_error_message() handle the group errors and messages.
Ref: ADR 0008
Assisted-by: Claude Opus 5.5