Skip to content

using bindTo gives findDOMNode error #91

Open
@huwshimi

Description

@huwshimi

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

⚠️ Make a Codesandbox ⚠️
Sandbox.

To Reproduce
Steps to reproduce the behavior:

  1. Go to this sandbox.
  2. Open your browser console.
  3. Click on the button to open the portal
  4. See the findDOMNode error in the console.

Expected behavior
There shouldn't be an error when using bindTo.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions