diff --git a/packages/input-number/src/input-number.tsx b/packages/input-number/src/input-number.tsx index 8b98fc2bb..7bb9683dc 100644 --- a/packages/input-number/src/input-number.tsx +++ b/packages/input-number/src/input-number.tsx @@ -1,10 +1,4 @@ -import { - forwardRef, - MutableRefObject, - useCallback, - useImperativeHandle, - useRef, -} from "react" +import { forwardRef, MutableRefObject, useCallback, useRef } from "react" import { InputNumberProps } from "./interface" import { Input } from "@illa-design/input" import { DownIcon, MinusIcon, PlusIcon, UpIcon } from "@illa-design/icon" @@ -54,13 +48,6 @@ export const InputNumber = forwardRef( const currentInputRef = useRef() as MutableRefObject - // useImperativeHandle(inputRef, () => ({ - // ...currentInputRef.current, - // focus: () => { - // currentInputRef.current.focus() - // }, - // })) - const plusStep = useCallback((): void => { const currentNumber = Number(finalValue)