diff --git a/src/InputNumber.tsx b/src/InputNumber.tsx index e9914912..d6d864b8 100644 --- a/src/InputNumber.tsx +++ b/src/InputNumber.tsx @@ -60,7 +60,7 @@ export interface InputNumberProps decimalSeparator?: string; onInput?: (text: string) => void; - onChange?: (value: T) => void; + onChange?: (value: T | null) => void; onPressEnter?: React.KeyboardEventHandler; onStep?: (value: T, info: { offset: ValueType; type: 'up' | 'down' }) => void;