Closed fincha closed 7 years ago
This would work only in Shady DOM, not with native Shadow DOM.
The proper way to support this would be to either support dynamic changes of dialogElement
(meaning have an observer and update accordingly to new and old value) or traverse the parents until we find a good dialog element candidate.
@valdrinkoshi one of my colleges suggested to use this.async, that do you with, will this solve this problem?
I think we need an observer for changes of dialogElement
, and ensure we have a value for dialogElement
on attached. I'll open a new PR to address this 👌
Fixing this in #69, added tests too 👌
fix for #63