Skip to content

Commit

Permalink
Merge pull request #109 from reaviz/input_select
Browse files Browse the repository at this point in the history
Expose select
  • Loading branch information
amcdnl authored Mar 11, 2024
2 parents 01440f6 + d537ed2 commit 52c27a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/form/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export const Input = forwardRef<InputRef, InputProps>(
inputRef,
containerRef,
blur: () => inputRef.current?.blur(),
focus: () => inputRef.current?.focus()
focus: () => inputRef.current?.focus(),
select: () => inputRef.current?.select()
}));

useLayoutEffect(() => {
Expand Down

0 comments on commit 52c27a0

Please sign in to comment.