mirror of https://github.com/vuejs/core.git
chore: fix useShadowRoot warning method name
This commit is contained in:
parent
6758c3cd04
commit
197afc2c1f
|
@ -664,10 +664,10 @@ export function useShadowRoot(): ShadowRoot | null {
|
|||
return (el as VueElement).shadowRoot
|
||||
} else if (__DEV__) {
|
||||
if (!instance) {
|
||||
warn(`useCustomElementRoot called without an active component instance.`)
|
||||
warn(`useShadowRoot called without an active component instance.`)
|
||||
} else {
|
||||
warn(
|
||||
`useCustomElementRoot can only be used in components defined via ` +
|
||||
`useShadowRoot can only be used in components defined via ` +
|
||||
`defineCustomElement.`,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue