Skip to content

Commit

Permalink
Update src/engine-scripts/puppet/collapsedTocState.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Robson <jdlrobson@gmail.com>
  • Loading branch information
Nicholas Ray and jdlrobson committed Nov 16, 2022
1 parent 5c921b4 commit 6958c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine-scripts/puppet/collapsedTocState.js
Expand Up @@ -22,6 +22,6 @@ module.exports = async ( page, hashtags ) => {
btn.click();
}, collapseTocButton );

const tocButtonSelector = isStickyHeader ? '#vector-sticky-header-toc-checkbox' : '#vector-toc-collapsed-button';
const tocButtonSelector = isStickyHeader ? '#vector-sticky-header-toc-checkbox,#p-sticky-header-toc-checkbox' : '#vector-toc-collapsed-button';
await menuState( page, tocButtonSelector, isClosed );
};

0 comments on commit 6958c77

Please sign in to comment.