Semantic-Org / Semantic-UI

Semantic is a UI component framework based around useful principles from natural language.
http://www.semantic-ui.com
MIT License
51.07k stars 4.96k forks source link

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

Closed codewizard-dt closed 1 year ago

codewizard-dt commented 1 year ago

[Button] should not throw findDOMNode warning in browser

Steps

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 commented 1 year ago

Opened issue in Semantic UI React https://github.com/Semantic-Org/Semantic-UI-React/issues/4396