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
I came across similar topics, but didn't find a good solution.
In my application, I decided to handle back clicks in the Android navigation bar so as not to exit the application if the modal window is open. That is - the user presses "back": is the modals open ? close window : close the application. In my application, this functionality had to be written in six different components, due to the fact that I cannot track it :(
I would like to implement one handler function in the main component, but I lack the tools.
My suggestions:
release a method that will return whether modals are open in the form true\false.
add the return value for dismissAll. In the same form - true\false, whether the windows were closed, it seems to me simpler and would be very useful.
That is, I could call this function and build on the return value.
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
-
I came across similar topics, but didn't find a good solution.
In my application, I decided to handle back clicks in the Android navigation bar so as not to exit the application if the modal window is open. That is - the user presses "back": is the modals open ? close window : close the application. In my application, this functionality had to be written in six different components, due to the fact that I cannot track it :(
I would like to implement one handler function in the main component, but I lack the tools.
My suggestions:
release a method that will return whether modals are open in the form true\false.
add the return value for dismissAll. In the same form - true\false, whether the windows were closed, it seems to me simpler and would be very useful.
That is, I could call this function and build on the return value.
I will be glad if you consider my request/idea
Beta Was this translation helpful? Give feedback.
All reactions