Skip to content

Commit 197afc2

Browse files
committed
chore: fix useShadowRoot warning method name
1 parent 6758c3c commit 197afc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-dom/src/apiCustomElement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,10 +664,10 @@ export function useShadowRoot(): ShadowRoot | null {
664664
return (el as VueElement).shadowRoot
665665
} else if (__DEV__) {
666666
if (!instance) {
667-
warn(`useCustomElementRoot called without an active component instance.`)
667+
warn(`useShadowRoot called without an active component instance.`)
668668
} else {
669669
warn(
670-
`useCustomElementRoot can only be used in components defined via ` +
670+
`useShadowRoot can only be used in components defined via ` +
671671
`defineCustomElement.`,
672672
)
673673
}

0 commit comments

Comments
 (0)