Comments (6)
Hi @brhallin @Hotell
Can I try resolving this bug?
It appears there are two issues:
divRef.current
is passed asnull
because after the initial render, whendivRef
gets its value, the component does not re-render.- The
infoLabel
is not functioning correctly when passingmountNode
in theinfoButton
prop. The reasons are:
a. TheinfoLabel
usesinfoButton
, which in turn usesPopOver
.
b. ThePopOver surface
usesPortal
when the surface is notinline
.
c. InuseInfoButton.tsx
, theinline
prop has a default value oftrue
, which is causing the issue.
d. We should either passinline
asfalse
or haveinline
automatically set to false whenmountNode
is passed.
Thanks!
from fluentui.
Thanks for investigating the issue and identifying the problem!
We should either pass
inline
asfalse
or haveinline
automatically set to false whenmountNode
is passed.
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 inline: false
along with the mountNode
prop, and we'll be unblocked.
🍻
from fluentui.
Sure but we are halfway.
on passing inline: false
along with mountNode
in infoButton
, do create the infoLabel
popover inside the mountNode
element, but the positioning of the popover is still at infoButton
.
Reference: popover is created and gets added in mountNode div element but still shown above the infoButton
from fluentui.
FWIW, in our use case, with the Canvas environment, the mountNode
property we're providing points to a valid DOM element and with the addition of inline: false
, it's now respecting that element.
from fluentui.
It's possible that the minimal demo I provided is faulty.
from fluentui.
great!
from fluentui.
Related Issues (20)
- [Bug]: Apply tooltip for split button is not accessible afterwards
- [Bug]: <MessageBar> reflow does not work when resizing container
- [Bug]: Re-open: Text in dropdown box and dropdown list wraps when overflows HOT 2
- [Feature]: `KeyTipLayer` add support for `keyUp` event
- [Feature]: `KeyTipLayer` add ability to invoke keytips after certain amount of time
- [Bug]: MessageBar V9 example in documentation missing AriaLiveAnnouncer component / context.
- [Bug]: V9 Card: when card is focusable (focusMode='tab-only'), onKeyDown events for pressing Enter are not executed HOT 1
- [Bug]: 'Single pointer action alternative' Not provided for the draggable control between the column headers
- [Bug]: V9 Combobox doesn't keep its state when multiple comboboxes are on the page HOT 2
- [Bug]: Tab is not working while fluent data grid row in edit mode with controls
- [Bug]: DialogModalType is not exportable
- [Bug]: Popover does not reposition correctly on zoom
- [Bug]: Unable to upgrade fluentUI react-components and react-icons HOT 2
- [Bug]: Using Toolbar is making it not possible to use tab key in monaco editor
- [Bug]: "partitionAvatarGroupItems" does not respect items sorting when content overflows
- [Bug]: Card component - If focusMode = 'tab-only', and the Card has an onClick event handler, then `focusMode` regresses to `no-tab` behaviour HOT 1
- [Bug]: React 19, Accessing element.ref is no longer supported
- Investigate `react-compiler` eslint violations
- CardHeader misaligned when description missing or undefined[Bug]:
- [Bug]: Popover, Dropdown and Combobox do not close on parent scroll or resize
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentui.