Skip to content

Commit

Permalink
LG-4300 (#2388)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruugey authored Jun 12, 2024
1 parent 342ab81 commit 5d03e71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-pugs-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@leafygreen-ui/chip': minor
---

Updates dismiss button to include `type="button"` so that component dismissal does not submit forms
1 change: 1 addition & 0 deletions packages/chip/src/DismissButton/DismissButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function DismissButton({

return (
<button
type="button"
data-testid="chip-dismiss-button"
aria-label={ariaLabel}
aria-disabled={disabled}
Expand Down

0 comments on commit 5d03e71

Please sign in to comment.