Merge pull request #20150 from prlanzarin/u27/fix/Arthurk12-live-crashes-1783

fix(bbb-html5): validate before getting user-list element attribute
This commit is contained in:
Anton Georgiev 2024-05-02 16:00:17 -04:00 committed by GitHub
commit 4d9e20891d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +92,7 @@ class UserParticipants extends Component {
selectEl(el) { selectEl(el) {
if (!el) return null; if (!el) return null;
if (el.getAttribute('tabindex')) return el?.focus(); if (typeof el.getAttribute === 'function' && el.getAttribute('tabindex')) return el?.focus();
this.selectEl(el?.firstChild); this.selectEl(el?.firstChild);
} }