ant-design icon indicating copy to clipboard operation
ant-design copied to clipboard

collapsed menu: findDOMNode was passed an instance of Trigger which is inside StrictMode

Open jyang14 opened this issue 3 years ago • 6 comments

Reproduction link

Edit on CodeSandbox

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

jyang14 avatar May 02 '22 19:05 jyang14

You may look for issues:

  1. 51% #35360

🤖 By issues-similarity-analysis

github-actions[bot] avatar May 02 '22 19:05 github-actions[bot]

any answers? "react": "^18.2.0", "antd": "^4.22.5",

Bing-Wang-20161208 avatar Sep 06 '22 08:09 Bing-Wang-20161208

throw warning too

"react": "^17.0.2",
"antd": "^4.22.5",

john-pimq avatar Dec 20 '22 13:12 john-pimq

throw warning too

"react": "18.2.0",
"antd": "5.0.7",

Seems like the tooltip component is causing this issue?

Samuel-luo avatar Jan 11 '23 09:01 Samuel-luo

图片

afc163 avatar Jan 13 '23 11:01 afc163

这个问题在5.3.0依然存在

binghuis avatar Mar 08 '23 15:03 binghuis

same issue in: react 18.2 antd 5.3.0

hcw2175 avatar Mar 10 '23 08:03 hcw2175

same

"antd": "^5.3.0",
"react": "^18.2.0",

b5414 avatar Mar 10 '23 12:03 b5414

+1

pchaganti avatar Mar 12 '23 19:03 pchaganti

+1

jerryyxu avatar Mar 13 '23 09:03 jerryyxu

+1

Emily-0616 avatar Mar 14 '23 04:03 Emily-0616

Same here

"antd": "^5.2.2",
"react": "^18.2.0",

Jing233-JS avatar Mar 15 '23 18:03 Jing233-JS

same issue "react": "^18.2.0" "antd": "^5.3.0"

yaoyonstudio avatar Mar 22 '23 06:03 yaoyonstudio

same issue

"antd": "^4.21.4", "react": "^18.2.0", "react-dom": "^18.2.0",

cloudSchulze avatar Mar 23 '23 17:03 cloudSchulze

same issue "react": "^18.2.0" "antd": "^5.3.2"

Michaelplus6 avatar Mar 24 '23 01:03 Michaelplus6

same issue

"antd": "~5.3.2",
"react": "^18.2.0"

QC2168 avatar Mar 25 '23 14:03 QC2168

same issue when use Dropdown "antd": "^5.3.2", "react": "^18.2.0"

boluo-O avatar Mar 29 '23 08:03 boluo-O

closed since [email protected] fixed this: https://codesandbox.io/s/antd-reproduction-template-forked-finddomnode-issue-g4xkkq?file=/package.json

zombieJ avatar Apr 06 '23 13:04 zombieJ

same issue

"antd": "^5.4.2", "react": "18.2.0", "react-dom": "18.2.0",

Removed Tooltip and the problem is solved.

Khalilsqu avatar Apr 15 '23 18:04 Khalilsqu

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.

Khalilsqu avatar Apr 15 '23 21:04 Khalilsqu

still the same

"antd": "^5.5.1",
"react": "^18.2.0",

b5414 avatar May 24 '23 08:05 b5414

The solution is to add [email protected] 😉

npm install [email protected] or

yarn install [email protected]

brayanjeshua avatar May 25 '23 09:05 brayanjeshua