File tree 1 file changed +4
-2
lines changed
ts/components/conversation
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
SubMenu ,
12
12
} from 'react-contextmenu' ;
13
13
14
+ import { createPortal } from 'react-dom' ;
14
15
import { DisappearingTimeDialog } from '../DisappearingTimeDialog' ;
15
16
import { Avatar , AvatarSize } from '../Avatar' ;
16
17
import { InContactsIcon } from '../InContactsIcon' ;
@@ -479,7 +480,7 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
479
480
) ;
480
481
} ) ;
481
482
482
- return (
483
+ return createPortal (
483
484
< ContextMenu id = { triggerId } rtl = { isRTL } >
484
485
{ disableTimerChanges ? null : (
485
486
< SubMenu hoverDelay = { 1 } title = { disappearingTitle } rtl = { ! isRTL } >
@@ -571,7 +572,8 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
571
572
) }
572
573
</ MenuItem >
573
574
) }
574
- </ ContextMenu >
575
+ </ ContextMenu > ,
576
+ document . body
575
577
) ;
576
578
}
577
579
You can’t perform that action at this time.
0 commit comments