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,web) fix opening dialogs in succession

Saúl Ibarra Corretgéeb59949dfac6
diff --git a/react/features/base/ui/components/web/Dialog.tsx b/react/features/base/ui/components/web/Dialog.tsx
index e4478ffc4c..40f21df31a 100644
--- a/react/features/base/ui/components/web/Dialog.tsx
+++ b/react/features/base/ui/components/web/Dialog.tsx
@@ -228,13 +228,13 @@ const Dialog = ({
const dispatch = useDispatch();
const onClose = useCallback(() => {
- onCancel?.();
dispatch(hideDialog());
+ onCancel?.();
}, [ onCancel ]);
const submit = useCallback(() => {
- onSubmit?.();
dispatch(hideDialog());
+ onSubmit?.();
}, [ onSubmit ]);
const handleKeyDown = useCallback((e: KeyboardEvent) => {