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

Prevent button from refocusing on menu close #336

Merged
merged 3 commits into from
Nov 19, 2024

Conversation

aswallace
Copy link
Contributor

@aswallace aswallace commented Nov 18, 2024

Description

The tooltip was reappearing on buttons with menus after the menu was closed because the dom was refocusing on the original button. This prevents refocusing on menu close via a FluentUI Callout property

Testing

Tested manually

closes #301

Copy link
Contributor

@BrianWhitneyAI BrianWhitneyAI left a comment

Choose a reason for hiding this comment

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

This also happens for the help menu but looks good for the data source button

@aswallace
Copy link
Contributor Author

aswallace commented Nov 19, 2024

This also happens for the help menu

Fixed in d7e9e99: Moved the attribute to useButtonMenu so that it applies to any menu that calls it

@aswallace aswallace merged commit 1a430d2 into main Nov 19, 2024
7 checks passed
@aswallace aswallace deleted the bugfix/remove-button-refocus branch November 19, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ghost tooltip making an appearance
3 participants