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 initial focus (#12509)

Robert Pintiliicbb8b5f620df
diff --git a/react/features/base/ui/components/web/Dialog.tsx b/react/features/base/ui/components/web/Dialog.tsx
index 1976c653f0..363b5f66b2 100644
--- a/react/features/base/ui/components/web/Dialog.tsx
+++ b/react/features/base/ui/components/web/Dialog.tsx
@@ -282,8 +282,14 @@ const Dialog = ({
onClick = { onClose } />
)}
</div>
- <div className = { classes.content }>{children}</div>
- <div className = { classes.footer }>
+ <div
+ className = { classes.content }
+ data-autofocus-inside = 'true'>
+ {children}
+ </div>
+ <div
+ className = { classes.footer }
+ data-autofocus-inside = 'true'>
{!back.hidden && <Button
accessibilityLabel = { t(back.translationKey ?? '') }
labelKey = { back.translationKey }
diff --git a/react/features/invite/components/add-people-dialog/web/CopyMeetingLinkSection.tsx b/react/features/invite/components/add-people-dialog/web/CopyMeetingLinkSection.tsx
index 276fe119ff..af6e5453af 100644
--- a/react/features/invite/components/add-people-dialog/web/CopyMeetingLinkSection.tsx
+++ b/react/features/invite/components/add-people-dialog/web/CopyMeetingLinkSection.tsx
@@ -37,7 +37,8 @@ function CopyMeetingLinkSection({ url }: IProps) {
<>
<label
className = { classes.label }
- htmlFor = { 'copy-button-id' }>{t('addPeople.shareLink')}</label>
+ htmlFor = { 'copy-button-id' }
+ id = 'copy-button-label'>{t('addPeople.shareLink')}</label>
<CopyButton
aria-label = { t('addPeople.copyLink') }
className = 'invite-more-dialog-conference-url'