Skip to content

Commit

Permalink
Merge pull request #831 from illacloud/fix/bug_1219
Browse files Browse the repository at this point in the history
fix: πŸ› auto focus input
  • Loading branch information
AruSeito authored Dec 19, 2023
2 parents 07ffe7f + 17c53df commit 358d112
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/input-number/src/input-number.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const InputNumber = forwardRef<HTMLInputElement, InputNumberProps>(
<div
css={applyControlBlockStyle("up", size)}
onClick={() => {
inputRef.current.focus()
plusStep()
}}
>
Expand All @@ -111,6 +112,7 @@ export const InputNumber = forwardRef<HTMLInputElement, InputNumberProps>(
<div
css={applyControlBlockStyle("bottom", size)}
onClick={() => {
inputRef.current.focus()
minusStep()
}}
>
Expand Down

0 comments on commit 358d112

Please sign in to comment.