Skip to content

Refs Must Have Owner Warning #472

Open
@lbelinsk

Description

@lbelinsk

Summary:

I upgraded from version 1.6.5 to 2.2.0 and started to see get this error described here:
https://facebook.github.io/react/warnings/refs-must-have-owner.html

Steps to reproduce:

  1. Use version 2.2.0 of react-modal.
  2. Create an app with modal and another component to be rendered to the dom.
  3. add ref prop on the additional component

Expected behavior:

App should work the same as it did before the version's upgrade.

Link to example of issue:

For example, Use react-modal with react-datePicker and you will automatically get this error since react-datePicker has some refs in it's inner implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions