You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the function createNavs and removeNavs can not execute becaus of the fihrst if
if ((tab instanceof Element && tab.tagName.toLowerCase() !== 'joomla-tab-element') || ![].some.call(this.children, (el) => el === tab).length || !tab.getAttribute('name') || !tab.getAttribute('id')) return;
The problem is with
![].some.call(this.children, (el) => el === tab).length
some returns true or fals and does not have length. Therfor it is always true.
Remove lenth and it will work
The text was updated successfully, but these errors were encountered:
the function createNavs and removeNavs can not execute becaus of the fihrst if
if ((tab instanceof Element && tab.tagName.toLowerCase() !== 'joomla-tab-element') || ![].some.call(this.children, (el) => el === tab).length || !tab.getAttribute('name') || !tab.getAttribute('id')) return;
The problem is with
![].some.call(this.children, (el) => el === tab).length
some returns true or fals and does not have length. Therfor it is always true.
Remove lenth and it will work
The text was updated successfully, but these errors were encountered: