Skip to content

Commit

Permalink
fix(Popup): cancel animation on unMount
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaringe committed May 8, 2018
1 parent c822956 commit 7c2104f
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 @@ -334,6 +334,7 @@ export default class Popup extends Component {
debug('handlePortalUnmount()')
const { hideOnScroll } = this.props

cancelAnimationFrame(this.animationRequestId)
if (hideOnScroll) eventStack.unsub('scroll', this.hideOnScroll, { target: window })
_.invoke(this.props, 'onUnmount', e, this.props)
}
Expand Down

0 comments on commit 7c2104f

Please sign in to comment.