move focus to breakout-room panel on open

This commit is contained in:
KDSBrowne 2021-09-08 11:30:20 +00:00
parent b9f8592a80
commit 75073842fd
2 changed files with 6 additions and 2 deletions

View File

@ -119,6 +119,10 @@ class BreakoutRoom extends PureComponent {
};
}
componentDidMount() {
if (this.panel) this.panel.firstChild.focus();
}
componentDidUpdate() {
const {
breakoutRoomUser,
@ -513,7 +517,7 @@ class BreakoutRoom extends PureComponent {
amIModerator,
} = this.props;
return (
<div className={styles.panel}>
<div className={styles.panel} ref={(n) => this.panel = n}>
<Button
icon="left_arrow"
label={intl.formatMessage(intlMessages.breakoutTitle)}

View File

@ -347,7 +347,7 @@ class UserOptions extends PureComponent {
return (
<BBBMenu
trigger={(
<Button
<Button
label={intl.formatMessage(intlMessages.optionsLabel)}
data-test="manageUsers"
icon="settings"