Skip to content

bodyOpenClassName is added to incorrect document #964

Closed
@leoc4e

Description

@leoc4e

Summary:

Steps to reproduce:

  1. use reactModal inside iframe by using parentSelector
  2. add className to body by using bodyOpenClassName
  3. className is added to rootDocument body

Expected behavior:

className should add to the ownerDocument of the modal instead

Link to example of issue:

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