You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ref on async component should be fixed by the commit above, but since it's async, you can't just access this.$el in mounted anyway. You'll have to wait until the async component is actually loaded (which can take unknown amount of time). So you should use a ref (after the fix is released).
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: