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

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

rajmondburgaj opened this issue Oct 13, 2018 · 1 comment

Comments

@rajmondburgaj
Copy link

@rajmondburgaj rajmondburgaj commented Oct 13, 2018

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

@atatanasov atatanasov commented Oct 25, 2018

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants