Chat: Fix context menu overflow on iOS (#2396)
This commit is contained in:
parent
55a9715bca
commit
4ad62ae62c
@ -104,8 +104,9 @@ const ListItem: FC<OwnProps> = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const getMenuElement = useCallback(
|
const getMenuElement = useCallback(
|
||||||
() => containerRef.current!.querySelector('.ListItem-context-menu .bubble'),
|
() => (withPortalForMenu ? document.querySelector('#portals') : containerRef.current)!
|
||||||
[],
|
.querySelector('.ListItem-context-menu .bubble'),
|
||||||
|
[withPortalForMenu],
|
||||||
);
|
);
|
||||||
|
|
||||||
const getLayout = useCallback(
|
const getLayout = useCallback(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user