We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 032d56b commit 9a7357aCopy full SHA for 9a7357a
lib/runtime/componentNormalizer.js
@@ -62,7 +62,12 @@ export default function normalizeComponent (
62
options._ssrRegister = hook
63
} else if (injectStyles) {
64
hook = shadowMode
65
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
+ ? function () {
66
+ injectStyles.call(
67
+ this,
68
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
69
+ )
70
+ }
71
: injectStyles
72
}
73
0 commit comments