Missing ref owner context. ref cannot be used on hoisted vnodes. #7686
Unanswered
unstoppable007
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
使用tsx语法,当使用ref的组件父元素是原生标签,就会出现这个报错
且editorRef为null
当父元素不是原生标签时,
就不会报错,且能够获取editorRef。
我很疑惑,是用法有问题还是vue的bug,求大佬解惑!
Beta Was this translation helpful? Give feedback.
All reactions