Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When trying to update a node it does append an extra checkbox ? #444

Closed
rajmondburgaj opened this issue Oct 13, 2018 · 1 comment
Closed

Comments

@rajmondburgaj
Copy link

Hi,

When I try this code here to update a node:

https://gijgo.com/tree/methods/updateNode

It does append an extra checkbox to this node.
The checkbox is added next to exisiting one.

Here is my code:

        var tree = $('#tree').tree({
            uiLibrary: 'bootstrap4',
            primaryKey: 'id',
            dataSource: '/Admin/MediaTree/GetDocuments',
            lazyLoading: true,
            checkboxes: true,
            dragAndDrop: true,
            border: true,
            hasChildrenField: 'hasChildrenCount',
            select: function (e, node, id) {
            }
        });

       node.text = data.Text;
       tree.updateNode(currentNodeId, node);

Does anybody know what might be the issue ?

atatanasov pushed a commit that referenced this issue Oct 25, 2018
@atatanasov
Copy link
Owner

This is fixed only in the new development version. You can find the new stable builds at https://github.com/atatanasov/gijgo/tree/1.9/dist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants