Skip to content

Commit fb1ad4a

Browse files
committed
fix: call injectStyle with this context in shadow mode
1 parent 93f2afa commit fb1ad4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/runtime/component-normalizer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function normalizeComponent (
7070
options._ssrRegister = hook
7171
} else if (injectStyles) {
7272
hook = shadowMode
73-
? function () { injectStyles(this.$root.$options.shadowRoot) }
73+
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
7474
: injectStyles
7575
}
7676

0 commit comments

Comments
 (0)