mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-19 03:27:48 +00:00
fix(prejoin) improve display name handling relative to configs (#13865)
This commit is contained in:
@@ -136,6 +136,7 @@ export interface IProps {
|
||||
description?: string;
|
||||
disableBackdropClose?: boolean;
|
||||
disableEnter?: boolean;
|
||||
disableEscape?: boolean;
|
||||
onClose?: () => void;
|
||||
size?: 'large' | 'medium';
|
||||
submit?: () => void;
|
||||
@@ -150,6 +151,7 @@ const BaseDialog = ({
|
||||
description,
|
||||
disableBackdropClose,
|
||||
disableEnter,
|
||||
disableEscape,
|
||||
onClose,
|
||||
size = 'medium',
|
||||
submit,
|
||||
@@ -166,7 +168,7 @@ const BaseDialog = ({
|
||||
}, [ disableBackdropClose, onClose ]);
|
||||
|
||||
const handleKeyDown = useCallback((e: KeyboardEvent) => {
|
||||
if (e.key === 'Escape') {
|
||||
if (e.key === 'Escape' && !disableEscape) {
|
||||
onClose?.();
|
||||
}
|
||||
if (e.key === 'Enter' && !disableEnter) {
|
||||
|
||||
Reference in New Issue
Block a user