I'm facing an issue with my Vue component that contains a treeview. Upon selecting a node, the goal is to update an array and display the checkbox as selected. However, I'm encountering a problem where if I select elements from one folder in the tree, then navigate to another folder to select different items, reopening the initial folder results in all previously selected elements being removed.
Below is the snippet of code:
<v-treeview
:items="patchItemsTreeList"
v-model="selectedPatchItemUUIDs"
@input="onChangeOfPatchSelection"
:name="'patchItemsTree'"
:open="openParentNode"
:item-text="'text'"
:key="fold"
:open-all="openParentNode.length === 0"
:selection-type="selectionType"
selectable
open-on-click
dense
@input=onChangeOfPatchSelection
The method seems to be triggering twice, disrupting my logic flow and clearing the selected items from the array unpredictably.