Merge "Table of contents toggles don't work correctly after update"

This commit is contained in:
jenkins-bot 2022-08-25 18:53:53 +00:00 committed by Gerrit Code Review
commit f8c9c46a52
1 changed files with 0 additions and 2 deletions

View File

@ -410,8 +410,6 @@ module.exports = function tableOfContents( props ) {
function reloadTableOfContents( sections ) {
mw.loader.using( 'mediawiki.template.mustache' ).then( () => {
reloadPartialHTML( getTableOfContentsHTML( sections ), TOC_ID );
// Rebind event listeners.
bindSubsectionToggleListeners();
// Reexpand sections that were expanded before the table of contents was reloaded.
reExpandSections();
// Initialize Collapse toggle buttons