Merge pull request #11477 from KDSBrowne/bbb-10774

Fix whiteboard text-area not allowing input on Firefox
This commit is contained in:
Anton Georgiev 2021-02-24 10:20:36 -05:00 committed by GitHub
commit 875f9c1ca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,9 +114,8 @@ export default class TextDrawListener extends Component {
this.sendLastMessage();
}
handleClick() {
const { isWritingText } = this.state;
if (isWritingText) this.sendLastMessage();
handleClick(e) {
if (e.srcElement.getAttribute('role') !== 'presentation') this.sendLastMessage();
}
// checks if the input textarea is focused or not, and if not - moves focus there