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

Fix: stop trying to access refs after unmounting #33

Merged

Conversation

justinanastos
Copy link
Contributor

Cancel pending animation frame request if one exists when we're unmounting. If we don't, then the frame callback may be called after this.refs.resizable has been removed from the DOM, causing an error.

Fixes #17

Copy link
Owner

@nrako nrako left a comment

Choose a reason for hiding this comment

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

Good catch! Thanks for the PR @justinanastos.

@nrako nrako merged commit f67cef9 into nrako:master Oct 18, 2018
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.

2 participants