@@ -68,6 +68,7 @@ function PopoverReportActionContextMenu(_props: unknown, ref: ForwardedRef<Repor
6868 const [ isThreadReportParentAction , setIsThreadReportParentAction ] = useState ( false ) ;
6969 const [ disabledActions , setDisabledActions ] = useState < ContextMenuAction [ ] > ( [ ] ) ;
7070 const [ shouldSwitchPositionIfOverflow , setShouldSwitchPositionIfOverflow ] = useState ( false ) ;
71+ const [ isWithoutOverlay , setIsWithoutOverlay ] = useState < boolean > ( true ) ;
7172
7273 const contentRef = useRef < View > ( null ) ;
7374 const anchorRef = useRef < View | HTMLDivElement | null > ( null ) ;
@@ -170,11 +171,13 @@ function PopoverReportActionContextMenu(_props: unknown, ref: ForwardedRef<Repor
170171 disabledOptions = [ ] ,
171172 shouldCloseOnTarget = false ,
172173 isOverflowMenu = false ,
174+ withoutOverlay = true ,
173175 } = showContextMenuParams ;
174176 const { reportID, originalReportID, isArchivedRoom = false , isChronos = false , isPinnedChat = false , isUnreadChat = false } = report ;
175177 const { reportActionID, draftMessage, isThreadReportParentAction : isThreadReportParentActionParam = false } = reportAction ;
176178 const { onShow = ( ) => { } , onHide = ( ) => { } , setIsEmojiPickerActive = ( ) => { } } = callbacks ;
177179 setIsContextMenuOpening ( true ) ;
180+ setIsWithoutOverlay ( withoutOverlay ) ;
178181 const { pageX = 0 , pageY = 0 } = extractPointerEvent ( event ) ;
179182 contextMenuAnchorRef . current = contextMenuAnchor ;
180183 contextMenuTargetNode . current = event . target as HTMLDivElement ;
@@ -343,7 +346,7 @@ function PopoverReportActionContextMenu(_props: unknown, ref: ForwardedRef<Repor
343346 disableAnimation = { false }
344347 shouldSetModalVisibility = { false }
345348 fullscreen
346- withoutOverlay
349+ withoutOverlay = { isWithoutOverlay }
347350 anchorDimensions = { contextMenuDimensions . current }
348351 anchorRef = { anchorRef }
349352 shouldSwitchPositionIfOverflow = { shouldSwitchPositionIfOverflow }
0 commit comments