We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
dModel
1 parent 84f4189 commit 8cfa7caCopy full SHA for 8cfa7ca
1 file changed
packages/ui/src/components/input/Input.tsx
@@ -97,7 +97,7 @@ export function DInput(props: DInputProps): JSX.Element | null {
97
const onDestroy$ = useMemo(() => new Subject<void>(), []);
98
const formControlInject = useFormControl(dFormControl);
99
const [_value, changeValue] = useDValue<string>('', dModel, onModelChange, undefined, formControlInject);
100
- if (_value !== dataRef.current.prevValue) {
+ if (!(dType === 'number' && (!isUndefined(dMax) || !isUndefined(dMin))) || _value !== dataRef.current.prevValue) {
101
dataRef.current.showValue = dataRef.current.prevValue = _value;
102
}
103
0 commit comments