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 9, 2023
1 parent 421dc90 commit 266ecd0
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 @@ -33,7 +33,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 @@ -64,7 +66,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 266ecd0

Please sign in to comment.