From a421b6807c7bfb9a47e3922f87bd89e95feefd58 Mon Sep 17 00:00:00 2001 From: gucal Date: Mon, 30 Oct 2023 12:54:14 +0300 Subject: [PATCH] Fix #5190 - PanelMenu: Visual defect --- components/lib/panelmenu/PanelMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/panelmenu/PanelMenu.js b/components/lib/panelmenu/PanelMenu.js index c4054710fd..b82a22fd3f 100644 --- a/components/lib/panelmenu/PanelMenu.js +++ b/components/lib/panelmenu/PanelMenu.js @@ -54,7 +54,7 @@ export const PanelMenu = React.memo( }; const onItemClick = (event, item) => { - if (item.disabled) { + if (item.disabled || !item.items) { event.preventDefault(); return;