mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-16 15:21:48 +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 { cloneElement } from 'preact';
|
||||||
import { useRef } from 'preact/hooks';
|
import { useRef } from 'preact/hooks';
|
||||||
|
|
||||||
|
import Menu2 from './menu2';
|
||||||
|
|
||||||
function MenuConfirm({
|
function MenuConfirm({
|
||||||
subMenu = false,
|
subMenu = false,
|
||||||
confirm = true,
|
confirm = true,
|
||||||
|
@ -20,7 +22,7 @@ function MenuConfirm({
|
||||||
}
|
}
|
||||||
return children;
|
return children;
|
||||||
}
|
}
|
||||||
const Parent = subMenu ? SubMenu : Menu;
|
const Parent = subMenu ? SubMenu : Menu2;
|
||||||
const menuRef = useRef();
|
const menuRef = useRef();
|
||||||
return (
|
return (
|
||||||
<Parent
|
<Parent
|
||||||
|
|
Loading…
Add table
Reference in a new issue