File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import type { HolderRef } from '@rc-component/input/lib/BaseInput';
2121import { BaseInputProps } from '@rc-component/input/lib/interface' ;
2222import { InputFocusOptions , triggerFocus } from '@rc-component/input/lib/utils/commonUtils' ;
2323import useFrame from './hooks/useFrame' ;
24- import useMobile from '@rc-component/util/lib/hooks/useMobile' ;
2524
2625export type { ValueType } ;
2726
@@ -134,7 +133,7 @@ const InternalInputNumber = React.forwardRef(
134133 downHandler,
135134 keyboard,
136135 changeOnWheel = false ,
137- controls,
136+ controls = true ,
138137
139138 stringMode,
140139
@@ -177,9 +176,6 @@ const InternalInputNumber = React.forwardRef(
177176 }
178177 }
179178
180- const isMobile = useMobile ( ) ;
181- const mergedControls = controls ?? ! isMobile ;
182-
183179 // ====================== Parser & Formatter ======================
184180 /**
185181 * `precision` is used for formatter & onChange.
@@ -611,7 +607,7 @@ const InternalInputNumber = React.forwardRef(
611607 onCompositionEnd = { onCompositionEnd }
612608 onBeforeInput = { onBeforeInput }
613609 >
614- { mergedControls && (
610+ { controls && (
615611 < StepHandler
616612 prefixCls = { prefixCls }
617613 upNode = { upHandler }
You can’t perform that action at this time.
0 commit comments