Skip to content

Bug: In react@next ShadowRoot as rootElement in ReactDOM.render crashes #19558

Closed

Description

@eps1lon

React version: 0.0.0-f77c7b9d7

Steps To Reproduce

  1. Mount a component with even listeners in a ShadowRoot

Link to code example:

The current behavior

Throws with

ensureListeningTo(): received a container that was not an element node. This is likely a bug in React.

The expected behavior

  1. throw with a descriptive error that ShadowRoot is no longer supported as a root element

or

  1. continue to allow ShadowRoot as a root element

No preference here. This was just from an old regression test we had.

Will be fixed by #15894

Activity

  1. added
    Status: Unconfirmed
    on Aug 7, 2020
  2. added and removed
    Status: Unconfirmed
    on Aug 17, 2020
  3. gaearon commented on Aug 28, 2020

    @gaearon
    Collaborator

    Fixed in 17.0.0-rc.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions