Bläddra i källkod

fix(desktop-picker): Populate list of desktop app windows to share

Fix bug introduced via #12994 where id was changed and "-tab" was appended. Due to this the selected tab was not anymore working and empty object was returned here: 05da37b56d/react/features/desktop-picker/components/DesktopPicker.tsx (L270)

Originally part of #13096 by @dudumanbogdan, but pulled ahead to fix application
window sharing via Electron desktop app.

Fixes: jitsi/jitsi-meet-electron#857
factor2
Christoph Settgast 2 år sedan
förälder
incheckning
1a22b7d0dd
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      react/features/desktop-picker/components/DesktopPicker.tsx

+ 2
- 2
react/features/desktop-picker/components/DesktopPicker.tsx Visa fil

@@ -358,7 +358,7 @@ class DesktopPicker extends PureComponent<IProps, IState> {
358 358
                 type => {
359 359
                     return {
360 360
                         accessibilityLabel: t(TAB_LABELS[type as keyof typeof TAB_LABELS]),
361
-                        id: `${type}-tab`,
361
+                        id: `${type}`,
362 362
                         controlsId: `${type}-panel`,
363 363
                         label: t(TAB_LABELS[type as keyof typeof TAB_LABELS])
364 364
                     };
@@ -369,7 +369,7 @@ class DesktopPicker extends PureComponent<IProps, IState> {
369 369
                 accessibilityLabel = { t('dialog.sharingTabs') }
370 370
                 className = 'desktop-picker-tabs-container'
371 371
                 onChange = { this._onTabSelected }
372
-                selected = { `${this.state.selectedTab}-tab` }
372
+                selected = { `${this.state.selectedTab}` }
373 373
                 tabs = { tabs } />);
374 374
     }
375 375
 

Laddar…
Avbryt
Spara