diff --git a/resources/skins.vector.es6/stickyHeader.js b/resources/skins.vector.es6/stickyHeader.js index 9c75983f5..3321e7354 100644 --- a/resources/skins.vector.es6/stickyHeader.js +++ b/resources/skins.vector.es6/stickyHeader.js @@ -481,7 +481,8 @@ function makeStickyHeaderFunctional( document.body.classList.remove( STICKY_HEADER_VISIBLE_CLASS ); stickyObserver.unobserve( stickyIntersection ); }; - const addSection = document.querySelector( '#ca-addsection a' ); + // When VectorPromoteAddTopic is set, #ca-addsection is the link itself + const addSection = document.querySelector( '#ca-addsection a' ) || document.querySelector( 'a#ca-addsection' ); prepareEditIcons( header,