mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-29 12:48:57 +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
|
<Menu
|
||||||
instanceRef={menuInstanceRef}
|
instanceRef={menuInstanceRef}
|
||||||
portal={{
|
portal={{
|
||||||
target:
|
target: document.body,
|
||||||
document.querySelector('.status-deck') || document.body,
|
|
||||||
}}
|
}}
|
||||||
containerProps={{
|
containerProps={{
|
||||||
|
style: {
|
||||||
|
// Higher than the backdrop
|
||||||
|
zIndex: 1001,
|
||||||
|
},
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
menuInstanceRef.current?.closeMenu?.();
|
menuInstanceRef.current?.closeMenu?.();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue