Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with flyouts created in CommandBarFlyout not closing when commandbar closes #3079

Conversation

marcelwgn
Copy link
Collaborator

Description

The code that closed the flyouts was only run when there were animations, which is a bug if animations are disabled as we leave flyouts open while the CommandBarFlyout is not open anymore.

Thanks @llongley for the pointer in that area!

Motivation and Context

Fixes #1792

How Has This Been Tested?

Add new interaction test.

Screenshots (if appropriate):

@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label Aug 7, 2020
// Move around over item to open flyout
PointerInput.Move(FindElement.ById("ProofingButton"), 5, 5);
PointerInput.Move(FindElement.ById("ProofingButton"), 6, 5);
PointerInput.Move(FindElement.ById("ProofingButton"), 5, 6);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a change yesterday that would allow you to replace this with a click if you wanted to

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right, yes. I don't think there is much benefit in updating this, but I'll use it next time when I write a test in this area.

Copy link
Contributor

@StephenLPeters StephenLPeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters added area-Commanding AppBar, UICommand, MVVM, etc team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Aug 7, 2020
@marcelwgn
Copy link
Collaborator Author

There was a test failure, hopefully it is fixed with the latest changes.

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@llongley llongley merged commit 67c2684 into microsoft:master Aug 10, 2020
Kinnara added a commit to Kinnara/ModernWpf that referenced this pull request Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Commanding AppBar, UICommand, MVVM, etc team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CommandBarFlyout: Submenu persists when CommandBar closes
4 participants