From 427e56d5796bc4206edcb9bb38be59082ba4b0fe Mon Sep 17 00:00:00 2001 From: Ella van Durpe Date: Fri, 31 Jan 2020 09:55:10 +0100 Subject: [PATCH] Popover: fix typo in removing event listener --- packages/components/src/popover/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/popover/index.js b/packages/components/src/popover/index.js index 88944369cc3ea0..d3a7eab8557c30 100644 --- a/packages/components/src/popover/index.js +++ b/packages/components/src/popover/index.js @@ -407,7 +407,7 @@ const Popover = ( { window.clearInterval( intervalHandle ); window.removeEventListener( 'resize', refresh ); window.removeEventListener( 'scroll', refresh, true ); - window.addEventListener( 'click', refreshOnAnimationFrame ); + window.removeEventListener( 'click', refreshOnAnimationFrame ); window.cancelAnimationFrame( rafId ); if ( observer ) {