From 266ecd07d9c9cb5621a7c9fdc769367b8e0e3da5 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 ff727c76..98accb9d 100644 --- a/src/pages/dataElements/form/fields.tsx +++ b/src/pages/dataElements/form/fields.tsx @@ -33,7 +33,9 @@ export function NameField() { field: 'name', id: dataElementId, }) - const { meta } = useField('name') + const { meta } = useField('name', { + subscription: { validating: true }, + }) return (