You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Rendering a Modal results in the following warning in the console: Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Portal 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
To Reproduce
when rendering a Modal, e.g:
import{Modal,Paragraph}from'@amsterdam/asc-ui'<Modalaria-labelledby="modal"open><div><Paragraph>
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Architecto, quisquam!
</Paragraph></div></Modal>
Open dev tools of the browser and see the warning displayed in the console.
Expected behavior
I would expect the Modal to render without the console warning.
Describe the bug
Rendering a Modal results in the following warning in the console:
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Portal 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-nodeTo Reproduce
Expected behavior
I would expect the Modal to render without the console warning.
Tested with: