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:
parent
fa3c528bef
commit
1cd5bf4d41
|
@ -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 );
|
||||
} );
|
||||
|
|
Loading…
Reference in New Issue