From faa9eb14878a418458aa1af7cbf3f6690416aae1 Mon Sep 17 00:00:00 2001 From: Dimitris Karagiannis Date: Sun, 10 Sep 2017 00:55:23 +0300 Subject: [PATCH] fix(Popup): Remove hideOnScroll from window scroll --- src/modules/Popup/Popup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/Popup/Popup.js b/src/modules/Popup/Popup.js index 64ee04a019..41590861c0 100644 --- a/src/modules/Popup/Popup.js +++ b/src/modules/Popup/Popup.js @@ -306,6 +306,7 @@ export default class Popup extends Component { handlePortalUnmount = (e) => { debug('handlePortalUnmount()') + window.removeEventListener('scroll', this.hideOnScroll) const { onUnmount } = this.props if (onUnmount) onUnmount(e, this.props) }