<q-tree> with combination of custom nodes and select sync



  • Hello all,
    I have the following issue and I would really appreciate some help:
    I have a q-tree that uses:

    • selected sync
    • custom nodes with Action buttons that call a function that does something to the corresponding node (takes prop.node as an argument)

    My problem:
    I want to be able to display somewhere the selected node and also perform action on it based on the buttons clicked, but if I click on a button, then the node gets deselected or selected. The required behavior would be to be able to click the buttons without triggering the selected sync of the tree component.
    The button is placed right next to the label of each node