When creating a Toast in a popup window, the element is not properly added to the new document.
Steps:
- Create a new window with
w = window.open('about:blank', '', 'width=200')
- Create a toast, and pass the new window's body
w.document.body as the selector option.
- 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
When creating a Toast in a popup window, the element is not properly added to the new document.
Steps:
w = window.open('about:blank', '', 'width=200')w.document.bodyas theselectoroption.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