Open sidneygijzen opened 2 years ago
I just encountered the issue. Do you know of a workaround until this is fixed?
@RubenSibon I currently use the disablePortal
prop as a workaround:
import { Modal, Paragraph } from '@amsterdam/asc-ui'
<Modal
aria-labelledby="modal"
disablePortal
open
>
<div>
<Paragraph>
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Architecto, quisquam!
</Paragraph>
</div>
</Modal>
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
Expected behavior I would expect the Modal to render without the console warning.
Tested with: