Skip to content

Commit 3939ef6

Browse files
fix: validation error chaining in superposition (#1628)
Co-authored-by: ArushKapoorJuspay <121166031+ArushKapoorJuspay@users.noreply.github.com>
1 parent 5296f4a commit 3939ef6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Utilities/DynamicFieldsUtils.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ let resolveValidator = (
8585

8686
let maxLengthRule = [Validation.MaxLength(field.maxInputLength->Option.getOr(255))]
8787

88-
let rules = [...requiredRule, ...semanticRule, ...maxLengthRule]
88+
let rules = [...semanticRule, ...requiredRule, ...maxLengthRule]
8989

9090
Validation.createFieldValidator(
9191
rules,

0 commit comments

Comments
 (0)