Fix selector for add topic button

Bug: T267444
Change-Id: Icd75f16c794f6f990a194fd57f99490934ded9de
This commit is contained in:
Ed Sanders 2023-03-06 22:29:54 +00:00 committed by Esanders
parent 39617aeb3f
commit 2f9cf813fe

View file

@ -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,