Skip to content

Commit 8e63005

Browse files
committed
Revert file
1 parent 21242cd commit 8e63005

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/InputNumber.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import type { HolderRef } from '@rc-component/input/lib/BaseInput';
2121
import { BaseInputProps } from '@rc-component/input/lib/interface';
2222
import { InputFocusOptions, triggerFocus } from '@rc-component/input/lib/utils/commonUtils';
2323
import useFrame from './hooks/useFrame';
24-
import useMobile from '@rc-component/util/lib/hooks/useMobile';
2524

2625
export 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}

0 commit comments

Comments
 (0)