-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[Bug]: InfoLabel does not respect mountNode
property
#31242
Comments
Hi @brhallin @Hotell It appears there are two issues:
Thanks! |
Thanks for investigating the issue and identifying the problem!
That's entirely up to the Fluent team, so I won't comment on the best decision. My team, however, now has a way forward -- we'll just add 🍻 |
It's possible that the minimal demo I provided is faulty. |
great! |
Library
React Components / v9 (@fluentui/react-components)
System Info
Are you reporting Accessibility issue?
None
Reproduction
https://stackblitz.com/edit/4bnprj?file=src%2Fexample.tsx
Bug Description
Actual Behavior
When clicked, the InfoLabel popover component should be attached to the DOM as a child of the element passed to the control, e.g.
Expected Behavior
When clicked, the InfoLabel popover component is attached to the DOM as a sibling of its
<button>
.Note that this behaviour was previously supported, albeit in a slightly different fashion, back when the component was simply known as
InfoButton
, via itspopover
property, e.g.<InfoButton {...rest} popover={{ mountNode: popoverRoot }} />
.In the provided minimal repro, we can see that the
mountNode
property provided does indeed point to a valid DOM element.Logs
No response
Requested priority
Blocking
Products/sites affected
PowerApps Canvas InfoButton component
Are you willing to submit a PR to fix?
yes
Validations
The text was updated successfully, but these errors were encountered: