Skip to content

Commit

Permalink
fix(Popup): Remove hideOnScroll from window scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarajohn committed Sep 9, 2017
1 parent 19e0056 commit faa9eb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/Popup/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit faa9eb1

Please sign in to comment.