N00ts/vue3-treeview

On initial load checkboxes are not respecting intermediate or checked values of parent

pranav9956 opened this issue · 3 comments

Suppose i have a array of nodes out of which some are checked and some are not.
On loading correct nodes are marked checked, but their parent nodes are meither checked nor they have intermediate state.

If i manually click on checkbox then it is fine but if :nodes data itself has some chcked state on some nodes it does not automatically maintain state of its parent.

For Example nodes look like this
->A
-> B
-> C

And by default B is has {state: {checked: true}}. Then on rendering A is not having intermediate state.

Hey, can you provide a codesandbox ?

Hi @N00ts here is the demo sandbox .

You can see here only node - id11 is checked. Although checkMode is 0

Screenshot 2024-03-27 at 9 07 39 PM

You will see

Hi @N00ts :) did u got chance to look into it?