From 237422b27eff640303ba96bb905956efeb8bab60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B1=AA?= <1844749591@qq.com> Date: Fri, 1 Nov 2024 10:29:10 +0800 Subject: [PATCH] chore: remove useless code --- src/InputNumber.tsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/InputNumber.tsx b/src/InputNumber.tsx index 9796b1ad..78c04b9b 100644 --- a/src/InputNumber.tsx +++ b/src/InputNumber.tsx @@ -663,20 +663,6 @@ const InputNumber = React.forwardRef((props, r React.useImperativeHandle(ref, () => proxyObject(inputFocusRef.current, { focus, - blur: () => { - inputFocusRef.current?.blur(); - }, - setSelectionRange: ( - start: number, - end: number, - direction?: 'forward' | 'backward' | 'none', - ) => { - inputFocusRef.current?.setSelectionRange(start, end, direction); - }, - select: () => { - inputFocusRef.current?.select(); - }, - input: inputFocusRef.current, nativeElement: holderRef.current.nativeElement || inputNumberDomRef.current, }), );