diff --git a/.changeset/early-baboons-cross.md b/.changeset/early-baboons-cross.md new file mode 100644 index 0000000000..2d21811616 --- /dev/null +++ b/.changeset/early-baboons-cross.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-components': patch +--- + +Added a `type="button"` attribute to the `post-close-button` to prevent it from submitting forms. diff --git a/packages/components/src/components/post-closebutton/post-closebutton.tsx b/packages/components/src/components/post-closebutton/post-closebutton.tsx index 0d447ab844..fbd679d15c 100644 --- a/packages/components/src/components/post-closebutton/post-closebutton.tsx +++ b/packages/components/src/components/post-closebutton/post-closebutton.tsx @@ -14,7 +14,7 @@ export class PostClosebutton { render() { return ( -