From aa62a7060f27542c3d77062c2a9ec87427213ade Mon Sep 17 00:00:00 2001 From: Jan-Gerke Salomon Date: Thu, 9 Nov 2023 11:09:51 +0100 Subject: [PATCH] feat(de name shortname inputs): get "validating" value only when that value changes --- src/pages/dataElements/form/fields.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/dataElements/form/fields.tsx b/src/pages/dataElements/form/fields.tsx index a594c351..fe907447 100644 --- a/src/pages/dataElements/form/fields.tsx +++ b/src/pages/dataElements/form/fields.tsx @@ -37,7 +37,9 @@ export function NameField() { field: 'name', id: dataElementId, }) - const { meta } = useField('name') + const { meta } = useField('name', { + subscription: { validating: true }, + }) return (