I have a Treeview
and I am interested in accessing the entire object once a node is selected. In
treeview there is a property named return-object
that ideally does that.
return-object
: When true will makev-model
,active.sync
andopen.sync
return the complete object instead of just the key.
But when I try that I get this error: Maximum call stack size exceeded.
Does anyone have any idea why this is happening?
<v-treeview
v-model="selected"
return-object
item-text="node.text"
:items="all"
activatable
open-on-click
selectable>
</v-treeview>
all: [
{
"node": {
"text": "child1",
"instances": ["test1"],
"props":[{
"text":"some",
"instance": ["text"]
}]
},
"children": [
{
"node": {
"text": "child2",
"instances": [ "test"],
"props":[{
"text":"some",
"instance": ["text"]
}]
}
}
]
}]
I appreciate your help.