fluentui
fluentui copied to clipboard
Different dismiss behavior on callout for chrome and firefox
Different dismiss behavior on callout for chrome and firefox.
- Package version(s): (2.20.2)
- Browser and OS versions: (fill this out if relevant)
Priorities and help requested (not applicable if asking question):
Are you willing to submit a PR to fix? ( No)
Requested priority: (Normal)
Products/sites affected: (if applicable)
Describe the issue:
Put command bar inside callout, and click that command bar, it will trigger _dismissOnLostFocus in CalloutContent. Watch ev.target variable. In chrome, its type is window, while in firefox, it is HtmlDocument. The code in firefox will continue to call dismiss and cause the callout closing.
Actual behavior:
The callout closes when clicking command bar inside in firefox.
Expected behavior:
The callout stays open.
If applicable, please provide a codepen repro:
Could not repro. Closing. Please reopen if you are still experiencing this issue, and please provide a Codepen if possible.