The click handler for outside click is relying on window which breaks when using a shadowdom/shadowroot. By using document and path both the shadowdom case and the standard case work for outside click detection.
I have not found this to be the case in instances where I use shadowdom but I'll take a look here soon and if there are no unintended consequences I'll be happy to merge this.
The click handler for outside click is relying on window which breaks when using a shadowdom/shadowroot. By using document and path both the shadowdom case and the standard case work for outside click detection.