From 622d46f35496f73d33e6f0e82d04907de53a02d3 Mon Sep 17 00:00:00 2001 From: melloware Date: Wed, 17 Jan 2024 08:28:07 -0500 Subject: [PATCH] Fix #5785: Menu URL handling --- components/lib/menu/Menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/menu/Menu.js b/components/lib/menu/Menu.js index eaaf6f2031..8ea7534032 100644 --- a/components/lib/menu/Menu.js +++ b/components/lib/menu/Menu.js @@ -69,8 +69,8 @@ export const Menu = React.memo( return; } - if (!item.url) { - event.preventDefault(); + if (item.url) { + return; } if (item.command) {