collapsed menu: findDOMNode was passed an instance of Trigger which is inside StrictMode
Reproduction link
Steps to reproduce
Hover over the icon in the reproduction link
What is expected?
No findDOMNode error in the console
What is actually happening?
in the console: "findDOMNode was passed an instance of Trigger which is inside StrictMode"
| Environment | Info |
|---|---|
| antd | 4.20.2 |
| React | 18.1.0 |
| System | Windows |
| Browser | Chrome 100 |
any answers? "react": "^18.2.0", "antd": "^4.22.5",
throw warning too
"react": "^17.0.2",
"antd": "^4.22.5",
throw warning too
"react": "18.2.0",
"antd": "5.0.7",
Seems like the tooltip component is causing this issue?
这个问题在5.3.0依然存在
same issue in: react 18.2 antd 5.3.0
same
"antd": "^5.3.0",
"react": "^18.2.0",
+1
+1
+1
Same here
"antd": "^5.2.2",
"react": "^18.2.0",
same issue
"react": "^18.2.0" "antd": "^5.3.0"
same issue
"antd": "^4.21.4", "react": "^18.2.0", "react-dom": "^18.2.0",
same issue "react": "^18.2.0" "antd": "^5.3.2"
same issue
"antd": "~5.3.2",
"react": "^18.2.0"
same issue when use Dropdown
"antd": "^5.3.2", "react": "^18.2.0"
closed since [email protected] fixed this: https://codesandbox.io/s/antd-reproduction-template-forked-finddomnode-issue-g4xkkq?file=/package.json
same issue
"antd": "^5.4.2", "react": "18.2.0", "react-dom": "18.2.0",
Removed Tooltip and the problem is solved.
same issue
"antd": "^5.4.2", "react": "18.2.0", "react-dom": "18.2.0",
Removed Tooltip and the problem is solved.
Update,
Apparently, this was my mistake
inside Tooltip there must be only one component.
<MyCustomTooltip >
<Component />
< / MyCustomTooltip >
I had two components inside the MyCustomTooltip!!
Thanks for this awesome library.
still the same
"antd": "^5.5.1",
"react": "^18.2.0",
The solution is to add [email protected] 😉
npm install [email protected]
or
yarn install [email protected]