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

Bug: T299907
Depends-On: I0eaeb98719bf7a43e4a87366cfcd204f35b74650
Change-Id: I8e8b635b46e79c63c4dafbd2418c9be94528ec06
This commit is contained in:
Ed Sanders 2022-01-25 12:30:53 +00:00 committed by Esanders
parent fa3c528bef
commit 1cd5bf4d41
1 changed files with 1 additions and 1 deletions

View File

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