Skip to content
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

v-repeat conflicts with nested v-ref #487

Closed
dgerber opened this issue Oct 14, 2014 · 1 comment
Closed

v-repeat conflicts with nested v-ref #487

dgerber opened this issue Oct 14, 2014 · 1 comment

Comments

@dgerber
Copy link

dgerber commented Oct 14, 2014

In v0.11.0-rc2, references to nested components don't behave as expected when children are repeated:

Vue.component('c1', {});
var vm = new Vue({
  el:'body',
  template: '<div v-component="c1" v-ref="c1"><div v-repeat="[1,2]" v-ref="c2"></div></div>'
});
vm.$.c1 // OK, parent vm
vm.$.c1.$.c2 // should be array of child vm, but undefined
vm.$.c2 // should be undefined, but returns the array of c2-children
yyx990803 added a commit that referenced this issue Oct 14, 2014
@yyx990803
Copy link
Member

Fixed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants