From 41c58d2466a489f98d5f49ce0bc08c6bc692cedf Mon Sep 17 00:00:00 2001 From: Arthurk12 Date: Tue, 16 Apr 2024 11:22:20 -0300 Subject: [PATCH] fix(user-list): validate before getting element attribute Implements check for getAttribute type before calling it. --- .../user-list/user-list-content/user-participants/component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/component.jsx b/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/component.jsx index ff8e0f3cf2..4d529ed398 100755 --- a/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/component.jsx @@ -92,7 +92,7 @@ class UserParticipants extends Component { selectEl(el) { 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); }