fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Different dismiss behavior on callout for chrome and firefox

Open FrankLMS opened this issue 9 years ago • 1 comments

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:

FrankLMS avatar May 16 '17 19:05 FrankLMS

Could not repro. Closing. Please reopen if you are still experiencing this issue, and please provide a Codepen if possible.

erichdev avatar Oct 12 '17 21:10 erichdev