|
@@ -26,7 +26,7 @@ export function refreshScope(element, scope) {
|
|
|
export function closestDataStack(node) {
|
|
|
if (node._x_dataStack) return node._x_dataStack
|
|
|
|
|
|
- if (node instanceof ShadowRoot) {
|
|
|
+ if (typeof ShadowRoot === 'function' && node instanceof ShadowRoot) {
|
|
|
return closestDataStack(node.host)
|
|
|
}
|
|
|
|