diff --git a/resources/skins.vector.es6/stickyHeader.js b/resources/skins.vector.es6/stickyHeader.js index e2eb4f5ad..83d7805d4 100644 --- a/resources/skins.vector.es6/stickyHeader.js +++ b/resources/skins.vector.es6/stickyHeader.js @@ -303,7 +303,7 @@ function isInViewport( element ) { */ function addVisualEditorHooks( targetIntersection, observer ) { // When Visual Editor is activated, hide the sticky header. - mw.hook( 've.activate' ).add( () => { + mw.hook( 've.activationStart' ).add( () => { hide(); observer.unobserve( targetIntersection ); } );