Skip to content

Commit

Permalink
feat(de name shortname inputs): get "validating" value only when that…
Browse files Browse the repository at this point in the history
… value changes
  • Loading branch information
Mohammer5 committed Nov 16, 2023
1 parent cfe25e6 commit aa62a70
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pages/dataElements/form/fields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export function NameField() {
field: 'name',
id: dataElementId,
})
const { meta } = useField('name')
const { meta } = useField('name', {
subscription: { validating: true },
})

return (
<FieldRFF
Expand Down Expand Up @@ -68,7 +70,9 @@ export function ShortNameField() {
field: 'shortName',
id: dataElementId,
})
const { meta } = useField('shortName')
const { meta } = useField('shortName', {
subscription: { validating: true },
})

return (
<FieldRFF
Expand Down

0 comments on commit aa62a70

Please sign in to comment.