From cbccaa43f1e6f8020f5fd2c62ebf0755e5c3f35d Mon Sep 17 00:00:00 2001 From: FredrikMWold Date: Tue, 22 Oct 2024 20:40:13 +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 --- 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(() => {