diff --git a/src/frontend/src/components/inputComponent/index.tsx b/src/frontend/src/components/inputComponent/index.tsx index 2e7bc2394..0efd29c0d 100644 --- a/src/frontend/src/components/inputComponent/index.tsx +++ b/src/frontend/src/components/inputComponent/index.tsx @@ -24,10 +24,10 @@ export default function InputComponent({ const refInput = useRef(null); // Clear component state useEffect(() => { - if (disabled) { + if (disabled && value !== "") { onChange(""); } - }, [disabled, onChange]); + }, [disabled]); return (