Skip to content

Commit

Permalink
chore: use onBlurValidator instead of validator
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Sep 23, 2024
1 parent 8041541 commit fab0ba6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const ValidationFunction = () => {
<Field.NationalIdentityNumber
required
value="123"
validator={validator}
onBlurValidator={validator}
validateInitially
/>
)
Expand Down Expand Up @@ -184,7 +184,7 @@ export const ValidationExtendValidator = () => {
<Field.NationalIdentityNumber
required
value="53050129159"
validator={myValidator}
onBlurValidator={myValidator}
validateInitially
/>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function NationalIdentityNumber(props: Props) {
mask,
width: props.width ?? 'medium',
inputMode: 'numeric',
validator: validate
onBlurValidator: validate
? props.validator || dnrAndFnrValidator
: undefined,
exportValidators: { dnrValidator, fnrValidator },
Expand Down

0 comments on commit fab0ba6

Please sign in to comment.