From 5c8ffd473ba6e93f67c332b4c329579cba541af5 Mon Sep 17 00:00:00 2001 From: Jurriaan BW <12056384+jjhbw@users.noreply.github.com> Date: Tue, 5 May 2020 09:38:05 +0200 Subject: [PATCH] Fix for #12795: InputNumber onChange type (#23871) --- components/input-number/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/input-number/index.tsx b/components/input-number/index.tsx index 91a9534f4a..66cdcad85d 100644 --- a/components/input-number/index.tsx +++ b/components/input-number/index.tsx @@ -20,7 +20,7 @@ export interface InputNumberProps step?: number | string; defaultValue?: number; tabIndex?: number; - onChange?: (value: number | undefined) => void; + onChange?: (value: number | string | undefined) => void; disabled?: boolean; size?: SizeType; formatter?: (value: number | string | undefined) => string;