[material-ui] Accessing element.ref was removed in React 19 #42604
Labels
bug 🐛
Something doesn't work
component: tooltip
This is the name of the generic UI component, not the React module!
In React 19, ref is now a prop and should be accessed through
props.ref
. We have some instances of this we should fix: https://github.com/search?q=repo:mui/material-ui%20children.ref&type=codeExample with Tooltip
https://codesandbox.io/p/sandbox/silly-sea-m9cjyn?file=%2Fsrc%2FDemo.tsx
Context
material-ui/packages/mui-material/src/Tooltip/Tooltip.js
Line 560 in 5149a65
Your environment
react v19.0.0-rc.0
@mui/material v5.15.19
The text was updated successfully, but these errors were encountered: