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

Added removeEventListener() for Android back button into componentWillUnmount #20

Merged
merged 2 commits into from
Mar 14, 2017

Conversation

alekseykarpenko
Copy link
Contributor

When Modal dialog is unmounted, event listener for Android hardware back button press (hardwareBackPress) is still there. This leads to problems in multi-page applications and/or when using other listeners for that event.

So i decided to remove event listener on each componentWillUnmount

@httnn
Copy link
Owner

httnn commented Mar 13, 2017

looking good! will test it tonight, and merge then.

@httnn httnn merged commit 750f534 into httnn:master Mar 14, 2017
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

2 participants