Reproduction link
Steps to reproduce
Add a children prop to a Menu item. No warning is given if the children prop is removed. No "ref" prop is needed for a warning to appear (if children prop is provided).
What is expected?
No warning should appear.
What is actually happening?
Full warning is:
Warning: Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.
| Environment | Info |
| ------------ | ------------ |
| antd | 5.18.0 |
| React | 19.0.0-rc.0 |
| System | Windows |
| Browser | Chrome v126.0.6468.2 |
2条答案
按热度按时间cgh8pdjw1#
This is also happening with tabs.
| Environment | Info |
| ------------ | ------------ |
| antd | 5.18.0 |
| React | 19.0.0-beta-26f2496093-20240514 |
| System | macOs Sonoma |
| Browser | Chrome v125.0.6422.142 |
vsaztqbk2#
And also happening with the
<Slider />