Skip to content

Commit 23a042e

Browse files
committed
chore: add comment
1 parent 67167e5 commit 23a042e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/InputNumber.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ const InternalInputNumber = React.forwardRef(
177177
}
178178
}
179179

180+
// Mobile user experience is not ideal, so we choose to hide the step controls by default on mobile.
181+
// However, developers can still display them by setting `controls=true`.
180182
const isMobile = useMobile();
181183
const mergedControls = controls ?? !isMobile;
182184

0 commit comments

Comments
 (0)