-
Notifications
You must be signed in to change notification settings - Fork 298
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
Modalize doesn't clear hardwareBackPress at component unmount #111
Comments
Hi, I didn't think about this behaviour, since Modalize is always there in my apps/examples. You could provide a PR if you have a fix, it shouldn't be complicated, |
I second that. It is actually a bug.Thank you in advance |
This should fix the jeremybarbet#111, where one could do: `cond ? <Modalize ...> : null`, and a `cond=false` could cause the modalize to keep listening to back press events
@jeremybarbet @itsam I was using a patch package patch for this, so I wasn't in a hurry for it. But anyway #137 should fix the problem. |
@Grohden Thanks a lot. |
This should fix the #111, where one could do: `cond ? <Modalize ...> : null`, and a `cond=false` could cause the modalize to keep listening to back press events
Fixed by @Grohden and released in |
This should fix the jeremybarbet#111, where one could do: `cond ? <Modalize ...> : null`, and a `cond=false` could cause the modalize to keep listening to back press events
#35 related
Looking at this commit, it seems that the remove listener call was moved to the closeAnimation, but removing it from the
componentWillUnmount
will make the listener always be active when only a unmount occur (such as something bad likecond ? null : <Modalize .../>
)The text was updated successfully, but these errors were encountered: