Coder Social home page Coder Social logo

Comments (6)

arvindr21 avatar arvindr21 commented on July 19, 2024

Can you please share a fiddle with the issue?

from jstree-directive.

johaven avatar johaven commented on July 19, 2024

Finally, It's happen when i have 2 path open in a same root folder and i refresh or reload tree.

To test: expand two nodes of the same root folder and refresh with $('#tree').jstree(true).refresh() - many times if possible.

from jstree-directive.

johaven avatar johaven commented on July 19, 2024

This is confirmed by the developer of jstree, it comes right jstree Directive.
it is not related to the state plugin.
With the last version of Jstree in master branch, i got this error:

TypeError: f.id.replace is not a function
...str(1).replace(a.jstree.idregex,"$&"):f.id.replace(a.jstree.idregex,"$&"))):...

How to reproduce:

  • open two subchilds that have the same parent.
  • launch a refresh ($('#tree').jstree(true).refresh())

from jstree-directive.

arvindr21 avatar arvindr21 commented on July 19, 2024

Oh! ok. Any proposed fix for this issue?

from jstree-directive.

johaven avatar johaven commented on July 19, 2024

Not yet had time to dissect the code, but it should be easy for you I think?
Do you have a proposal to refresh the tree in another way?

from jstree-directive.

arvindr21 avatar arvindr21 commented on July 19, 2024

As of now, I do not have a solution for this. May be you could save last opened children nodes in local storage and open the tree nodes till this level recursively? I don't know, may not be the correct way to do it.

Do let me know if you find a fix for this. Thanks!

from jstree-directive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.