From 732183420dc782122a7248181fb250fcb7dd7c68 Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Fri, 22 Sep 2023 11:42:32 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(react)=20fix=20select=20pills=20su?= =?UTF-8?q?bmiting=20form?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We found out that clicking on the delete button of the pill in example forms were triggering form submit. --- packages/react/src/components/Forms/Select/multi-common.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react/src/components/Forms/Select/multi-common.tsx b/packages/react/src/components/Forms/Select/multi-common.tsx index d23d4bf..28638d4 100644 --- a/packages/react/src/components/Forms/Select/multi-common.tsx +++ b/packages/react/src/components/Forms/Select/multi-common.tsx @@ -168,6 +168,7 @@ export const SelectMultiAux = ({ aria-label={t( "components.forms.select.clear_button_aria_label", )} + type="button" className="c__select__inner__value__pill__clear" onClick={(e) => { e.stopPropagation();