How to set the target of toast to a custom element, not a string,
I found the target in the api documentation, showing that HtmlElement can be set.
I tested it and it didn't work. Then, I found from the source code that only string can be defined, otherwise body is used. Our project cannot be set to string, because there are multiple similarly defined tags, the tags obtained by document.querySelector may not be correct.
How can I set the target of the toast as a custom element?
Looking forward to your reply