-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
[2.0.0-rc2] Can't get $refs correctly #3455
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
Comments
@dalphyx, seems to me is behaving as expected. There is a |
The fact that it does not work in -rc.2 anymore probably has to do with this:
@yyx990803 Is that a bug ? |
@LinusBorg, if using v-if in a root node is forbidden, shouldn't it warn about when doing such? |
Already deleted that comment, that was not entirely correct. |
great! this bug wasted my a few hours to change the |
I'm having this issue on 2.4.4. |
@TomKaltz please open a separate issue, thanks. |
Maybe this is the same issue with #6632 |
@TomKaltz I'va having a very similar issue, did you manage to solve your issue ? If so, how ? If not, what did you end-up doing to acheive what you were going for ? |
Vue.js version
2.0 rc2
Reproduction Link
https://jsfiddle.net/1khxsgue/
Steps to reproduce
Just click run button, open console can find the error
Cannot read property 'hello' of undefined
What is Expected?
The same code with 2.0 rc-1 https://jsfiddle.net/y35ot0du/ run without any error. We can access key
testA
inthis.$refs
when componentsmounted
hook is called .The text was updated successfully, but these errors were encountered: