Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip 嵌套 Select使用 严格模式下报错:Warning: findDOMNode is deprecated in StrictMode. #48565

Closed
zhuba-Ahhh opened this issue Apr 21, 2024 · 2 comments
Labels
improvement improve some features

Comments

@zhuba-Ahhh
Copy link

Reproduction link

Edit on StackBlitz

Steps to reproduce

https://stackblitz.com/edit/react-jg4mye?file=index.tsx,demo.tsx

What is expected?

不报错

What is actually happening?

报错:Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of DomWrapper which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here:

Environment Info
antd 5.16.2
React 18.2.0
System Mac Pro M2
Browser Chrome
Copy link

stackblitz bot commented Apr 21, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@afc163
Copy link
Member

afc163 commented Apr 30, 2024

Trace #48709

@afc163 afc163 closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement improve some features
Projects
None yet
Development

No branches or pull requests

3 participants