From dd4e766d4be63b83664fab5c14d5347f727059c5 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 8 Dec 2023 11:00:01 +0000 Subject: [PATCH] Remove { passive: true } from removeEventListener This option doesn't exist when removing an event. Change-Id: I74cc8c41ad13ae7d2b4932c41d8dc51b764e1b6b --- modules/ve-mw/preinit/ve.init.mw.DesktopArticleTarget.init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/preinit/ve.init.mw.DesktopArticleTarget.init.js b/modules/ve-mw/preinit/ve.init.mw.DesktopArticleTarget.init.js index ea4048110c..31ef8ef2a6 100644 --- a/modules/ve-mw/preinit/ve.init.mw.DesktopArticleTarget.init.js +++ b/modules/ve-mw/preinit/ve.init.mw.DesktopArticleTarget.init.js @@ -132,7 +132,7 @@ function hideToolbarPlaceholder() { if ( $toolbarPlaceholder ) { - window.removeEventListener( 'scroll', onWindowScrollListener, { passive: true } ); + window.removeEventListener( 'scroll', onWindowScrollListener ); $toolbarPlaceholder.detach(); $toolbarPlaceholder.removeClass( 've-init-mw-desktopArticleTarget-toolbarPlaceholder-open' ); }