From 35f89ea1569f28b0d1239c118c3b03b0547d55fa Mon Sep 17 00:00:00 2001 From: Fredrik Mikal Wold Date: Wed, 23 Oct 2024 10:28:07 +0200 Subject: [PATCH] fix: when using menu in a form, the form is submitted when clicking on a menu item if closeOnClcik is set to false (#3660) --- packages/eds-core-react/src/components/Menu/MenuItem.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eds-core-react/src/components/Menu/MenuItem.tsx b/packages/eds-core-react/src/components/Menu/MenuItem.tsx index fba8168e71..f48be11738 100644 --- a/packages/eds-core-react/src/components/Menu/MenuItem.tsx +++ b/packages/eds-core-react/src/components/Menu/MenuItem.tsx @@ -154,6 +154,7 @@ export const MenuItem: OverridableSubComponent = forwardRef< (ref, (el) => { if (isFocused) { requestAnimationFrame(() => {