Merge pull request #11736 from KDSBrowne/bbb-acc-2
Fix duplicate element Id in UserParticipants
This commit is contained in:
commit
5adab18af2
@ -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) });
|
||||
}
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user