Open
Description
Describe the bug
usePortal
with bindTo
produces the following errors in React 18:
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
Sandbox.
To Reproduce
Steps to reproduce the behavior:
- Go to this sandbox.
- Open your browser console.
- Click on the button to open the portal
- See the
findDOMNode
error in the console.
Expected behavior
There shouldn't be an error when using bindTo
.
Metadata
Metadata
Assignees
Labels
No labels