You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
closes when the "done" item at the bottom is pressed.
ALSO closes when any area outside the menu is tapped.
That last one is where I have the problem.
Once I control the menu via local state to control the isOpen prop, I have to put my own onPress on the menu trigger component (to set isOpen to true). This allows me to execute 2 (the onPress of DONE item sets isOpen to false), but now the { triggerprops } are overwritten, and tapping outside the menu has no effect.
Is there a different way to approach this that allows the continued use of triggerprops? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Ideally, I'm looking to have a
Menu
that...That last one is where I have the problem.
Once I control the menu via local state to control the
isOpen
prop, I have to put my ownonPress
on the menu trigger component (to set isOpen to true). This allows me to execute 2 (the onPress of DONE item sets isOpen to false), but now the{ triggerprops }
are overwritten, and tapping outside the menu has no effect.Is there a different way to approach this that allows the continued use of triggerprops? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions