mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-24 08:23:30 +00:00
fix: stricter selector to prevent issues with nested Tabber
This commit is contained in:
parent
5e398c9129
commit
342cc2aa85
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
function initTabber( tabber ) {
|
||||
const key = tabber.getAttribute( 'id' ).substring( 7 ),
|
||||
tabPanels = tabber.querySelectorAll( '.tabber__panel' );
|
||||
tabPanels = tabber.querySelectorAll( ':scope > .tabber__section > .tabber__panel' );
|
||||
|
||||
const container = document.createElement( 'header' ),
|
||||
tabList = document.createElement( 'nav' ),
|
||||
|
|
Loading…
Reference in a new issue