From 5d03e71a0a61c3585e4fd6cdb11b777fd5f86ce2 Mon Sep 17 00:00:00 2001 From: Brooke Scarlett Yalof Date: Wed, 12 Jun 2024 17:13:41 -0400 Subject: [PATCH] LG-4300 (#2388) --- .changeset/few-pugs-raise.md | 5 +++++ packages/chip/src/DismissButton/DismissButton.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/few-pugs-raise.md diff --git a/.changeset/few-pugs-raise.md b/.changeset/few-pugs-raise.md new file mode 100644 index 0000000000..a25d4f90c9 --- /dev/null +++ b/.changeset/few-pugs-raise.md @@ -0,0 +1,5 @@ +--- +'@leafygreen-ui/chip': minor +--- + +Updates dismiss button to include `type="button"` so that component dismissal does not submit forms diff --git a/packages/chip/src/DismissButton/DismissButton.tsx b/packages/chip/src/DismissButton/DismissButton.tsx index ed736b40e3..b5cb146dcf 100644 --- a/packages/chip/src/DismissButton/DismissButton.tsx +++ b/packages/chip/src/DismissButton/DismissButton.tsx @@ -30,6 +30,7 @@ export function DismissButton({ return (