Skip to content

Commit

Permalink
Popover: fix typo in removing event listener (#19978)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jan 31, 2020
1 parent 1b5461c commit 0194925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 0194925

Please sign in to comment.