Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'resize' event listener on TimeGrid unmount #734

Merged
merged 1 commit into from
Mar 17, 2018

Conversation

Shastel
Copy link
Contributor

@Shastel Shastel commented Feb 22, 2018

Closes #725

Copy link
Owner

@jquense jquense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

}

componentWillUnmount() {
window.clearTimeout(this._timeIndicatorTimeout)
window.removeEventListener('resize', this.handleResize)

raf.cancel(this.rafHandle)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is raf some global? I am not familiar with the API.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual api used is requestAnimationFrame the helper here is from dom-helpers and is a bit more cross browser resilient

@sc14aec
Copy link

sc14aec commented Mar 16, 2018

I've been having this issue, would appreciate if this got merged in

@jquense jquense merged commit b343b3d into jquense:master Mar 17, 2018
@Shastel Shastel deleted the fix/725 branch March 28, 2018 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants