diff --git a/lib/components/src/controls/Number.tsx b/lib/components/src/controls/Number.tsx index bee111677646..24c8db6567c3 100644 --- a/lib/components/src/controls/Number.tsx +++ b/lib/components/src/controls/Number.tsx @@ -58,6 +58,13 @@ export const NumberControl: FC = ({ if (forceVisible && htmlElRef.current) htmlElRef.current.select(); }, [forceVisible]); + useEffect(() => { + const newInputValue = typeof value === 'number' ? value : ''; + if (inputValue !== newInputValue) { + setInputValue(value); + } + }, [value]); + if (!forceVisible && value === undefined) { return (