Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dull-beers-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Addresses an issue where video conference popups don't receive proper focus because FocusScope is mispositioned
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ const VideoConfPopups = ({ children }: { children?: VideoConfPopupPayload }): Re
<>
{(children || popups?.length > 0) && (
<VideoConfPopupPortal>
<FocusScope autoFocus contain restoreFocus>
<VideoConfPopupBackdrop>
{(children ? [children, ...popups] : popups).map(({ id, rid, isReceiving }, index = 1) => (
<VideoConfPopup key={id} id={id} rid={rid} isReceiving={isReceiving} isCalling={isCalling} position={index * 10} />
))}
{(children ? [children, ...popups] : popups).map(({ id, rid, isReceiving }, index = 1) => (
<VideoConfPopupBackdrop key={id}>
<FocusScope autoFocus contain restoreFocus>
<VideoConfPopup id={id} rid={rid} isReceiving={isReceiving} isCalling={isCalling} position={index * 10} />
</FocusScope>
</VideoConfPopupBackdrop>
</FocusScope>
))}
</VideoConfPopupPortal>
)}
</>
Expand Down
Loading