From d3856035d181a04648f31064b766c3c0d1353dc7 Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Thu, 26 Sep 2024 16:31:22 +0200 Subject: [PATCH] Fix overriding default input component --- src/client/src/components/form/formInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/components/form/formInput.tsx b/src/client/src/components/form/formInput.tsx index bc75bae7f..deea454b4 100644 --- a/src/client/src/components/form/formInput.tsx +++ b/src/client/src/components/form/formInput.tsx @@ -89,7 +89,7 @@ export const FormInput: FC = ({ data-cy={fieldName + "-formInput"} InputProps={{ ...inputProps /* eslint-disable @typescript-eslint/no-explicit-any */, - inputComponent: withThousandSeparator ? (NumericFormatWithThousandSeparator as any) : null, + ...(withThousandSeparator && { inputComponent: NumericFormatWithThousandSeparator as any }), readOnly: readonly, disabled: disabled, }}