mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-14 18:15:49 +00:00
fix(core): 🐛 incorrect section selector
This commit is contained in:
parent
8b1158bc78
commit
685901cce3
|
@ -55,11 +55,11 @@ function init( bodyContent ) {
|
|||
const heading = target.closest( '.citizen-section-heading' );
|
||||
|
||||
if ( heading ) {
|
||||
const i = +heading.getAttribute( 'data-mw-citizen-section-heading-index' );
|
||||
const headline = heading.querySelector( '.mw-headline' ) ||
|
||||
heading.querySelector( '.mw-heading' );
|
||||
|
||||
if ( headline ) {
|
||||
const i = +headline.getAttribute( 'data-mw-citizen-section-heading-index' );
|
||||
toggleClasses( i );
|
||||
toggleAriaExpanded( headline );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue