🐛(react) fix select pills submiting form
We found out that clicking on the delete button of the pill in example forms were triggering form submit.
This commit is contained in:
@@ -168,6 +168,7 @@ export const SelectMultiAux = ({
|
|||||||
aria-label={t(
|
aria-label={t(
|
||||||
"components.forms.select.clear_button_aria_label",
|
"components.forms.select.clear_button_aria_label",
|
||||||
)}
|
)}
|
||||||
|
type="button"
|
||||||
className="c__select__inner__value__pill__clear"
|
className="c__select__inner__value__pill__clear"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|||||||
Reference in New Issue
Block a user