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

Anchor component inside Affix component throws "findDOMNode is deprecated in StrictMode" #48812

Closed
luke-m opened this issue May 7, 2024 · 1 comment

Comments

@luke-m
Copy link

luke-m commented May 7, 2024

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Use Anchor inside Affix
  2. Check console

What is expected?

No errors

What is actually happening?

Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node

Environment Info
antd 5.17.0
React 18.2.0
System MacOS Sonoma 14.4.1
Browser Chrome Version 122.0.6261.112 (Official Build) (arm64)
@afc163
Copy link
Member

afc163 commented May 8, 2024

Trace #48709

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants