Child slot component not dismissing on backpress #864
Replies: 2 comments
-
Do you have both stack and slot in your Main component? If so, you need to put your slot property below the stack property. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@arkivanov Thank you, that fixed the problem! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a MainComponent with bottom navigation and each bottom navigation item has their own child stack.
MainComponent Child stack:
Child component (bottom navigation item) child stack:
And then I have a SlotNavigation in my MainComponent:
The slot only dismisses if all the other stacks are on their root components.. otherwise it goes back in those other components even while the slot is active.. (In other words, I cant get the slot to capture the backpress event first.. its consumed by other components.)
I have tried registering a manual back handler with a high priority etc.. but nothing seems to work..
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions