You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Menu] - Warning: Accessing element.ref was removed in React 19 #49267
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
Reacted by AngeloTallarita, Raúl Marín, deathemperor, Anurag Roy, Brandon Nielsen, 김광훈, Anton Fedulov, hvsy, Simon Schmidt, Buu Pham and 28 more
Reacted by Brandon Nielsen, Fahmi, Amauri Santos, Jay Parmar, BART!, Le Minh, Dorian Percic, Charles Neau and Louis Kauer
Reacted by Jay Parmar, Charles Neau and Louis Kauer
app-index.tsx:30 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.
at Wave (webpack-internal:///(app-pages-browser)/./node_modules/antd/es/_util/wave/index.js:26:13)
at eval (webpack-internal:///(app-pages-browser)/./node_modules/antd/es/button/button.js:65:13)
at FloatingRecordContainer (webpack-internal:///(app-pages-browser)/./src/components/FloatingRecordContainer.tsx:14:13)
at NovoCliente (webpack-internal:///(app-pages-browser)/./src/app/(dashboard)/d/clientes/components/NovoCliente.tsx:23:76)
at div
at div
at div````
Activity
vylink commentedon Jun 7, 2024
This is also happening with tabs.
brandonfake69 commentedon Jul 30, 2024
And also happening with the
<Slider />tiarebalbi commentedon Sep 2, 2024
➕
nicevlhjfihtqngkldl commentedon Sep 30, 2024
Same problem.Does the maintainer have the plan to fix this?
rendeyuwei commentedon Oct 11, 2024
same problem
xqinwl commentedon Oct 16, 2024
same problem too
aurora-lch commentedon Oct 22, 2024
react 18.3.1 antd 5.21.5
same problem
israel-lpz commentedon Oct 22, 2024
same problem
rftglyv commentedon Oct 23, 2024
Same Problem
"next": "15.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
jvnm-dev commentedon Oct 24, 2024
Same w/ next 15
51 remaining items
alexfilitaryn-awtg commentedon Dec 4, 2024
+1
ianzone commentedon Dec 6, 2024
Now React 19 has been released
zombieJ commentedon Dec 6, 2024
See plan here: #51919
Kekajan commentedon Dec 6, 2024
+1
saifookhan commentedon Dec 8, 2024
+1
lexmin0412 commentedon Dec 8, 2024
Same Problem.
minorcell commentedon Dec 9, 2024
https://zh-hans.react.dev/blog/2024/04/25/react-19
verhovensky commentedon Dec 11, 2024
Same for me with
prohui commentedon Dec 14, 2024
Same Problem.
Saqib7865-dev commentedon Dec 24, 2024
Same issue while using RangePicker from DatePicker.
arvinxx commentedon Dec 25, 2024
5.22.6 should have fixed this.
manzaloros commentedon Dec 30, 2024
Just FYI. 5.22.6 does not fix this issue. I still get
refconsole warnings with theLayoutcomponent and React 19 with Ant Design.vylink commentedon Dec 30, 2024
@MahdiYazdan , just tried on 5.22.7.. Didn't work until removed node_modules and re-installed dependencies. Hope it helps.
Amaranthusss commentedon Dec 31, 2024
@vylink same here but I had to delete / update my yarn.lock. Thanks :)