Skip to content

Commit

Permalink
Fix clear button accidentally submitting a form on Select
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Beceic authored and jtomic-croz committed Feb 9, 2024
1 parent 6615ce4 commit 57375bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/selectors/src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ function Select<T>({
{loading && <div className={loadingInnerClassName}>{loadingIcon}</div>}
{error && warningIcon}
{value && !hideClearButton && !error && (
<button className={clearClassName} onClick={clear}>
<button type="button" className={clearClassName} onClick={clear}>
{removeIcon}
</button>
)}
Expand Down

0 comments on commit 57375bd

Please sign in to comment.