简体   繁体   中英

Multiple Jstree ID conflict

I have Two Jstree with two different div

<div id="tree1"><div>
<div id="tree2"><div>

and i am calling two different json and binding in a tree1 and tree2

and the issue is I have same ID for tree1 li nodes and tree2 li nodes. This cause that only one node is opening and other is hiding.

Eg. If I have opened Tree1 tree and the tree2 tree is hiding because of ID conflict.

Please help me to solve the issue

Thanks for the Quick reply I have found the solution

Jstree has solved this issue in their Latest build( 3.0.0-beta10 )

The following sentence is mentioned in their build

Jstree now allows duplicate IDs on page level (but not in the same tree), basically you can have the same node ID in different trees now

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM