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(); this.sendLastMessage();
} }
handleClick() { handleClick(e) {
const { isWritingText } = this.state; if (e.srcElement.getAttribute('role') !== 'presentation') this.sendLastMessage();
if (isWritingText) this.sendLastMessage();
} }
// checks if the input textarea is focused or not, and if not - moves focus there // checks if the input textarea is focused or not, and if not - moves focus there