Skip to content

Not passing portalClassName prop results in <div class="undefined"> #246

@ffigiel

Description

@ffigiel

Summary:

I noticed there's a bunch of silly <div class="undefined"> after upgrading my react-portal version.

Steps to reproduce:

  1. Render a Modal without passing portalClassName prop
  2. Observe that the portal div has a className of "undefined"
  3. there's no 3

Expected behavior:

No class is given on the portal div.

Additional notes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions