Commit 1a2c1441 authored by JC Brand's avatar JC Brand

Updates #1021 Fix TypeError: Cannot read property 'firstChild' of null

parent 983c94a6
......@@ -423,7 +423,7 @@
switchTab (ev) {
if (ev && ev.preventDefault) { ev.preventDefault(); }
const tab = ev.target,
const tab = u.hasClass('msgs-indicator', ev.target) ? ev.target.parentNode : ev.target,
sibling_li = tab.parentNode.nextElementSibling || tab.parentNode.previousElementSibling,
sibling = sibling_li.firstChild,
sibling_panel = _converse.root.querySelector(sibling.getAttribute('href')),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment