From b269d9d6609e02c303ab458b7c3b15e01773ff16 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 22 Nov 2023 08:47:49 +0800 Subject: [PATCH] Fix menu blocking everything for Boost button --- src/components/menu-confirm.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/menu-confirm.jsx b/src/components/menu-confirm.jsx index 40cd146b..1088a21f 100644 --- a/src/components/menu-confirm.jsx +++ b/src/components/menu-confirm.jsx @@ -2,6 +2,8 @@ import { Menu, MenuItem, SubMenu } from '@szhsin/react-menu'; import { cloneElement } from 'preact'; import { useRef } from 'preact/hooks'; +import Menu2 from './menu2'; + function MenuConfirm({ subMenu = false, confirm = true, @@ -20,7 +22,7 @@ function MenuConfirm({ } return children; } - const Parent = subMenu ? SubMenu : Menu; + const Parent = subMenu ? SubMenu : Menu2; const menuRef = useRef(); return (