Close CommandBar Overflow/Flyout after item has been selected? #1061
Unanswered
DanielLukic
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I just looked at the code I copied from the examples once more. Doh. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I must be missing something obvious. But how would I close the dynamic overflow of a
CommandBar
when an overflow item is selected by the user? Can I somehow tell from within theonPressed
if a) the overflow is open and/or this is an overflow item? and b) access the overflow somehow to close it? or c) set some flag to do this automatically? Sorry for asking a n00b question here. Was looking at the source a bit. But not sure where to look tbh.. 🤷 🙈My current workaround is to always call
pop
on theNavigator
from everyCommandBarItem.onPressed
. Both primary and secondary. Because I'm not sure how to differentiate. Well, this works for me because I have no pages/routes/anything. But this can't be it, can it? 🙃Again, I must be overlooking something. Maybe someone can point me in the right direction? Thank you kindly!
Beta Was this translation helpful? Give feedback.
All reactions