mardi 26 février 2019

JS Tree Selecting un selected items

I am using JsTree checkbox which contains lot of sub fields.

When I am selecting one field it automatically selects the sub category of another field.

So that field shows partially checked.

For instance:

In my JsTree When I clicked "United States" it partially selects "Canada".

Please any one explains this behavior.

Since the tree is big I am not pasting the code instead of that I am posting an JsFiddle URL. Code:

$(function () {
    $("#tree").jstree({
        "checkbox": {
            "keep_selected_style": false
        },
            "plugins": ["checkbox"],
                                'core': {
                                    'data': {
  "id": "ALL",
  "text": "ALL",
  "children": [] ...

JSFiddle : http://jsfiddle.net/1r70vjmx/

Thanks in Advance.




Aucun commentaire:

Enregistrer un commentaire