[Bug]: Fluentui v8 TooltipHost does not open when hovered/focused when running with vite run
#12758
Closed
7 tasks done
Labels
Describe the bug
When serving my react project with
vite run
Fluentui v8 TooltipHosts do not show their content on mouse over/focus as they should.They do show correctly when running a production build produced by
vite build
.I also created an issue against fluentui because I'm not sure if the issue is in that library, or vite specifically.
Reproduction
https://stackblitz.com/edit/vitejs-vite-rrim5b?file=src/App.tsx
Steps to reproduce
Create a new vite react project, and add "@fluentui/react": "8.107.1".
Add a TooltipHost component to the app, e.g
On keyboard focus or mouse over, the
TooltipHost
should reveal a callout with the text "You did it!", but when running undervite run
the callout does not show.Observe that the onMouseEnter and onMouseLeave events fire correctly for the regular div, but do not fire on the TooltipHost when running in
vite run
, but they do when running a production build. These events are what the TooltipHost is using to determine when to show the callout.System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: