liquor-tree icon indicating copy to clipboard operation
liquor-tree copied to clipboard

Disabled node is marked if parent node is selected

Open florianojunior opened this issue 5 years ago • 2 comments

Hello,

When we determine that a Node is not selectable (Disabled) and mark the Parent Node, the CheckBox that is disabled is marked when it should not.

Access the example and mark the Parent Node, note that the child that is disabled will be marked.

https://jsfiddle.net/9od7e0x3/3/

Anyone know if they can solve this?

Thank you very much

florianojunior avatar Jun 19 '19 00:06 florianojunior

Hi. Please check the new version (0.2.59).

By default disabled nodes will be checked. But you can add a checkDisabledChildren property.

const options = {
    checkbox: true,
    checkDisabledChildren: false
}

<tree
    :data="data"
    :options="options" />

amsik avatar Jun 21 '19 09:06 amsik

Hi. Please check the new version (0.2.59).

By default disabled nodes will be checked. But you can add a checkDisabledChildren property.

const options = {
    checkbox: true,
    checkDisabledChildren: false
}

<tree
    :data="data"
    :options="options" />

Hello,

I'll update, thank you very much.

florianojunior avatar Jun 21 '19 12:06 florianojunior