Qtree with same label on parent and children

  • Hi, I came across a problematic with QTree component.
    When the label is the same in the parent and in the children only the parent is displayed.
    nodes= [{label: test, children: [{label: test, children: []}]}]
    then only test is displayed as tree without children

  • You need to set the node-key prop to tell Quasar what your unique key on your node is. Also every node has to have a unique key.

  • Ok thank you, it works now with a unique id for each node.

Log in to reply