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

QTree expand/collapse bug and how to fix it #1200

Closed
MTLink opened this issue Nov 29, 2017 · 1 comment · Fixed by #1202
Closed

QTree expand/collapse bug and how to fix it #1200

MTLink opened this issue Nov 29, 2017 · 1 comment · Fixed by #1202
Milestone

Comments

@MTLink
Copy link

MTLink commented Nov 29, 2017

QTree expand/collapse functionality doesn't work in some cases. For example if tree model is dynamicaly created. The reason for this is an error in quasar/src/components/tree/TreeItem.vue
Vue framework doesn't allow to change props inside component
this.model.expanded = !this.model.expanded -- not correct

Therefore it is needed add

data: function () {
  return { expanded: this.model.expanded }
}

And then use expanded instead of model.expanded

@rstoenescu rstoenescu added this to the v0.15 milestone Nov 29, 2017
@rstoenescu
Copy link
Member

Available in future v0.15

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

Successfully merging a pull request may close this issue.

2 participants