Merge "Use new ve.activationStart hook to hide header earlier when loading editor"

This commit is contained in:
jenkins-bot 2022-02-14 18:33:19 +00:00 committed by Gerrit Code Review
commit 4557c0910b
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
} );