-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't access ref correctly if component was imported by defineAsyncComponent() #2671
Comments
Looks like the |
Yes, and if I have a component
Then when I use this component,
In component |
|
Version
3.0.3
Reproduction link
https://codepen.io/ShookLyngs/pen/gOwObGG
Steps to reproduce
defineAsyncComponent()
, for example componentitem
<item ref="item" />
@click
this.$refs.item.do()
, failthis.$refs.item.$refs.item.do()
, successWhat is expected?
access ref by
this.$refs.item
.What is actually happening?
have to access ref by using
this.$refs.item.$refs.item
.The text was updated successfully, but these errors were encountered: