Skip to content

Commit

Permalink
Fix menu blocking everything for Boost button
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Nov 22, 2023
1 parent 1383296 commit b269d9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/menu-confirm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -20,7 +22,7 @@ function MenuConfirm({
}
return children;
}
const Parent = subMenu ? SubMenu : Menu;
const Parent = subMenu ? SubMenu : Menu2;
const menuRef = useRef();
return (
<Parent
Expand Down

0 comments on commit b269d9d

Please sign in to comment.