Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bodyOpenClassName is added to incorrect document #964

Closed
leoc4e opened this issue Sep 12, 2022 · 0 comments · Fixed by #965
Closed

bodyOpenClassName is added to incorrect document #964

leoc4e opened this issue Sep 12, 2022 · 0 comments · Fixed by #965

Comments

@leoc4e
Copy link
Contributor

leoc4e commented Sep 12, 2022

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant