-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Callouts should trigger onDismiss when focus moves to an iframe on the page #22133
Comments
It appears that this is the rough history of this issue:
On the side, React Northstar has fixed this for their PopUp, ToolTip, and MenuItem components: #18893 My proposal is then to use the hook already used and tested in Northstar, useOnIframeFocus in FluentUi/React callouts |
Hey @micahgodbolt! I see that you triaged this issue. Can you speak to the relative priority of this issue with the other work you and the team is doing? Can I help by opening a PR with the proposed fix of mine? |
@micahgodbolt I just noticed this is also an issue when scrolling within an iframe. I would expect scrolling in an child iframe to dismiss callouts in the parent window. Should I edit this issue or open a new one? |
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
We're still running into this and it affects all iframe hosts. Can we re-open? |
Reopening |
Moved this to the coastal backlog to improve visibility. |
@tronguye one workaround might be adding The thing to watch out for there is that if you have an iframe nested inside the Callout, interacting with it will also cause the Callout to dismiss. There isn't really a way to differentiate between focus entering an iframe outside of the callout vs. focus entering an iframe inside the callout. We also have a Hope that makes sense, and let us know if the |
Hi @micahgodbolt , I think the reason is the method "dismissOnTargetWindowBlur" handle the evt incorrectly in https://github.com/microsoft/fluentui/blame/master/packages/react/src/components/Callout/CalloutContent.base.tsx. I have careted a pr to solve this problem: #26930. Please help review, thanks! |
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
1 similar comment
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
1 similar comment
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this reported issue has not had any activity for over 180 days, we're automatically closing it for house-keeping reasons. Still require assistance? Please, create a new issue with up-to date details and latest version of Fluent. |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
1 similar comment
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
9 similar comments
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this reported issue has not had any activity for over 180 days, we're automatically closing it for house-keeping reasons. Still require assistance? Please, create a new issue with up-to date details and latest version of Fluent. |
2 similar comments
Because this reported issue has not had any activity for over 180 days, we're automatically closing it for house-keeping reasons. Still require assistance? Please, create a new issue with up-to date details and latest version of Fluent. |
Because this reported issue has not had any activity for over 180 days, we're automatically closing it for house-keeping reasons. Still require assistance? Please, create a new issue with up-to date details and latest version of Fluent. |
Environment Information
Please provide a reproduction of the bug in a codepen:
https://codepen.io/tronguye/pen/dyJYjVr
Actual behavior:
Having a callout open and clicking into an iframe sibling to it does not trigger onDismiss
Expected behavior:
onDismiss should trigger when focus moves to an iframe sibling to it. It should not dismiss when clicking to another non-iframe window
Priorities and help requested:
Are you willing to submit a PR to fix? (Yes, No) Yes
Requested priority: (Blocking, High, Normal, Low) High
Products/sites affected: (if applicable) Any FluentUI consumer that hosts iframe'd content. In the case of Microsoft, this includes all MetaOS hubs, Microsoft Loop, Teams apps, Teams embed client, etc.
The text was updated successfully, but these errors were encountered: