Merge pull request #11736 from KDSBrowne/bbb-acc-2

Fix duplicate element Id in UserParticipants
This commit is contained in:
Anton Georgiev 2021-03-25 02:13:18 -04:00 committed by GitHub
commit 5adab18af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ class UserParticipants extends Component {
componentDidUpdate(prevProps, prevState) {
const { compact } = this.props;
const { selectedUser, scrollArea } = this.state;
const { selectedUser, scrollArea } = this.state;
if (!compact && (!prevState.scrollArea && scrollArea)) {
scrollArea.addEventListener(
'keydown',
@ -234,7 +234,7 @@ class UserParticipants extends Component {
this.refScrollContainer = ref;
}}
>
<span id="destination" />
<span id="participants-destination" />
<AutoSizer>
{({ height, width }) => (
<List
@ -247,7 +247,7 @@ class UserParticipants extends Component {
this.listRef = ref;
}
if (ref !== null && !scrollArea) {
if (ref !== null && !scrollArea) {
this.setState({ scrollArea: findDOMNode(ref) });
}
}}