mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 09:15:33 +03:00
Fix menu blocking everything for Boost button
This commit is contained in:
parent
1383296861
commit
b269d9d660
1 changed files with 3 additions and 1 deletions
|
@ -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 (
|
||||
<Parent
|
||||
|
|
Loading…
Reference in a new issue