mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 18:55:44 +03:00
Fix menu not appearing due to portal-ing to different container
This commit is contained in:
parent
3c7fc30444
commit
6342268945
1 changed files with 5 additions and 2 deletions
|
@ -562,10 +562,13 @@ function Status({
|
|||
<Menu
|
||||
instanceRef={menuInstanceRef}
|
||||
portal={{
|
||||
target:
|
||||
document.querySelector('.status-deck') || document.body,
|
||||
target: document.body,
|
||||
}}
|
||||
containerProps={{
|
||||
style: {
|
||||
// Higher than the backdrop
|
||||
zIndex: 1001,
|
||||
},
|
||||
onClick: () => {
|
||||
menuInstanceRef.current?.closeMenu?.();
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue