Focus disappears in CommandBarFlyout with SecondaryCommands, no PrimaryCommands #5857
Labels
area-Commanding
AppBar, UICommand, MVVM, etc
help wanted
Issue ideal for external contributors
team-Controls
Issue for the Controls team
Describe the bug
When using the
CommandBarFlyout
withSecondaryCommands
and withoutPrimaryCommands
, the focus can still land on the "See less" button part of thePrimaryCommands
panel even though it isn't visualized.Focus isn't really lost, since it can be recovered by continuing to arrow through the items. But it is confusing.
Steps to reproduce the bug
Steps to reproduce the behavior:
CommandBarFlyout
instance that usesSecondaryCommands
, but noPrimaryCommands
.Expected behavior
I would expect to not be able to focus on the "See less" button if it is not being visualized.
Screenshots
Button:
Flyout opened:
Focus is hidden, "See less" is visible:
Version Info
NuGet package version: Microsoft.UI.Xaml 2.6.2
Windows app type:
Additional context
The text was updated successfully, but these errors were encountered: