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

Toastify does not work with new window #118

Open
Awesome-E opened this issue Apr 2, 2023 · 0 comments
Open

Toastify does not work with new window #118

Awesome-E opened this issue Apr 2, 2023 · 0 comments

Comments

@Awesome-E
Copy link

When creating a Toast in a popup window, the element is not properly added to the new document.

Steps:

  1. Create a new window with w = window.open('about:blank', '', 'width=200')
  2. Create a toast, and pass the new window's body w.document.body as the selector option.
  3. Show that toast notification

Expected: the toast shows up in the new window's body
Actual: it shows up in the original

https://codepen.io/Awesome-E/pen/gOdVpQO?editors=1010

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

No branches or pull requests

1 participant