Closed JTInfinite closed 5 years ago
Can you provide a minimal example that reproduces the issue?
Thanks for the response.
Do you have jsfiddle/codepen boilerplate? Not sure how to get your component into a fiddle.
Thanks for that. First look suggests my use of 'this' in v-model is causing the error. Changing from:
<sl-vue-tree v-model="this.chapters"
ref="tree-view"
:allowMultiselect="false"
@nodeClick="selectScene">...
</sl-vue-tree>
to:
<sl-vue-tree v-model="chapters"
ref="tree-view"
:allowMultiselect="false"
@nodeClick="selectScene">...
<sl-vue-tree>
seems to silence the warnings. A big thank you for helping out and sorting the fiddle template out. Allow me to keep this issue open for a little while longer so I can be sure I have fixed it.
seems to be working now. Just a note to any future reader:
@nodeClick should be @nodeclick
Could punch myself for that one
First off, thanks for the great work with sl-vue-tree. I seem to have my tree displaying properly on the page with the drag and collapse 'branch' functionality working. However, my console gives me a series of warnings whenever I click a node:
My chapters array is an array of the following objects - i am simply giving this.chapters to the sl-vue-tree v-model:
Apologies in advance if I have missed something simply - been scratching my head with this one for a couple of days now.
Thanks!