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

[Button] should not throw findDOMNode warning in browser #7096

Closed
codewizard-dt opened this issue Oct 28, 2022 · 1 comment
Closed

[Button] should not throw findDOMNode warning in browser #7096

codewizard-dt opened this issue Oct 28, 2022 · 1 comment

Comments

@codewizard-dt
Copy link

[Button] should not throw findDOMNode warning in browser

Steps

  • Be using React ^18 in StrictMode
  • Add Button component to a page
  • Open Dev Tools and look at console

Expected Result

There should be no warnings

Actual Result

There is a big red warning

react-dom.development.js:86 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of RefFindNode which is inside StrictMode. 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
    at button
    at RefFindNode (http://localhost:3000/static/js/bundle.js:2245:35)
    at Ref (http://localhost:3000/static/js/bundle.js:2186:24)
    at Button (http://localhost:3000/static/js/bundle.js:66088:29)

Version

Semantic-UI-React 2.1.3
React ^18.2

@codewizard-dt
Copy link
Author

Opened issue in Semantic UI React
Semantic-Org/Semantic-UI-React#4396

@codewizard-dt codewizard-dt closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant