diff --git a/ui/src/app/form/component/widgets/TextWidget.js b/ui/src/app/form/component/widgets/TextWidget.js index 2f8c183b0..2e2db043f 100644 --- a/ui/src/app/form/component/widgets/TextWidget.js +++ b/ui/src/app/form/component/widgets/TextWidget.js @@ -41,8 +41,10 @@ const TextWidget = ({ }; React.useEffect(() => { - onChange(fieldValue); - }, [fieldValue, onChange]); + if (fieldValue || touched) { + onChange(fieldValue); + } + }, [fieldValue, onChange, touched]); const translator = useTranslator();