Open DonIsaac opened 4 years ago
Thanks for reporting this! I'll try to fix this
@DonIsaac could you also provide a simple repro?
I can't use the codebase that I'm using as an example, but if I get time I'll upload a simple repro
A related issue is that tooltips don't work in a React portal in another browser window (due to this hard binding to the main window's document
).
@emilschutte hm, thanks for letting me know, could you provide a repro so I could try fixing that?
Let's see, not sure I remember exactly 😅 ... I think it was something like this:
https://codesandbox.io/s/react-fiddle-l7qdj?file=/src/App.js
A related issue is that tooltips don't work in a React portal in another browser window (due to this hard binding to the main window's
document
).
I made it to work in the portal by adding a separate instance of
Heyo,
My preact application uses a shadow dom as a mounting point, and tooltips are not appearing. I did some digging through the source code, and I believe I know why.
Events in the shadow dom are not propagated up to
document
, sotoggleHint
never fires.One way that this could be fixed is by allowing users to specify the element where the
ReactHint
singleton should listen for events