Skip to content

Commit

Permalink
fix: text input trailing button (#126)
Browse files Browse the repository at this point in the history
- add trailing icon button type to prevent submitting form
  • Loading branch information
uipoet authored Jan 11, 2022
1 parent c864e7d commit 2ed6e33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/components/input/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const TextInput = forwardRef<
<button
className={styles.button}
onClick={() => handleClick && handleClick()}
type="button"
>
{trailingIcon}
</button>
Expand Down

0 comments on commit 2ed6e33

Please sign in to comment.