Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(audio-devices): fix index as pos in set
Joshua Irmer2ec3cfcb9e8a
diff --git a/react/features/settings/components/web/audio/MicrophoneEntry.tsx b/react/features/settings/components/web/audio/MicrophoneEntry.tsxindex 61df75d3ab..7464c507b2 100644--- a/react/features/settings/components/web/audio/MicrophoneEntry.tsx+++ b/react/features/settings/components/web/audio/MicrophoneEntry.tsx@@ -29,9 +29,10 @@ interface IProps {hasError?: boolean;/**- * Flag indicating if there is a problem with the device.+ * Index of the device item used to generate this entry.+ * Indexes are 0 based.*/- index?: number;+ index: number;/*** Flag indicating the selection state.@@ -190,7 +191,7 @@ const MicrophoneEntry = ({return (<liaria-checked = { isSelected }- aria-posinset = { index }+ aria-posinset = { index + 1 } // Add one to offset the 0 based index.aria-setsize = { length }className = { classes.container }onClick = { onClick }diff --git a/react/features/settings/components/web/audio/SpeakerEntry.tsx b/react/features/settings/components/web/audio/SpeakerEntry.tsxindex c2aa446bff..38e650e8f1 100644--- a/react/features/settings/components/web/audio/SpeakerEntry.tsx+++ b/react/features/settings/components/web/audio/SpeakerEntry.tsx@@ -25,7 +25,8 @@ interface IProps {deviceId: string;/**- * Flag controlling the selection state of the entry.+ * Index of the device item used to generate this entry.+ * Indexes are 0 based.*/index: number;@@ -139,7 +140,7 @@ const SpeakerEntry = (props: IProps) => {return (<liaria-checked = { isSelected }- aria-posinset = { index }+ aria-posinset = { index + 1 } // Add one to offset the 0 based index.aria-setsize = { length }className = { classes.container }onClick = { _onClick }