-
Notifications
You must be signed in to change notification settings - Fork 133
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
Clickable outside of the AnimatePresence requires second click #297
Comments
why not pull the trigger outside of the animate presence component? |
It is already outside. This touchable for backdrop press |
i’m not exactly sure what the issue is, but it sounds like you want to set pointer events to none for the popover when it’s in a closed state. try doing that. it’s not clear to me this is a moti issue. |
Imagine you have popup content which has a full screen backdrop component in it... and you are making visible/invisible with a pressable....
if i remove AnimatedPresence everything works as expected... but exiting animation not working |
I have a simple popup component like below that i am showing by clicking a button outside of the AnimatePresence...
It sets the
street.detailCreateMenuVisibility
totrue
and there is a fullscreenTouchableOpacity
below, with this one i simulate the backdrop action, when user click outside of the content, it sets thestreet.detailCreateMenuVisibility
back tofalse
again.Functionally this is working but when i set to
false
the trigger for re-open not taking action on first hit..but on second clickSimulator.Screen.Recording.-.iPhone.14.-.2023-07-06.at.11.48.00.mp4
as you can see when i close it i cannot click to plus sign again on first try
The text was updated successfully, but these errors were encountered: