Skip to content

Toastify does not work with new window #118

@Awesome-E

Description

@Awesome-E

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions