Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(dialog) Fix close on backdrop (#13512)

Robert Pintilii877fbe63c1b2
diff --git a/react/features/base/ui/components/web/BaseDialog.tsx b/react/features/base/ui/components/web/BaseDialog.tsx
index 182834cc50..33170e8d76 100644
--- a/react/features/base/ui/components/web/BaseDialog.tsx
+++ b/react/features/base/ui/components/web/BaseDialog.tsx
@@ -180,11 +180,10 @@ const BaseDialog = ({
return (
<div className = { cx(classes.container, isUnmounting && 'unmount') }>
- <div
- className = { classes.backdrop }
- onClick = { onBackdropClick } />
+ <div className = { classes.backdrop } />
<FocusOn
className = { classes.focusLock }
+ onClickOutside = { onBackdropClick }
returnFocus = {
// If we return the focus to an element outside the viewport the page will scroll to