You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem occurs when using the dnd plugin (with html_data and themes) and you start to drag an element. It can't find the first child anchor because it's inside a div and it fails - https://github.com/vakata/jstree/blob/v.pre1.0/jquery.jstree.js#L801 I'm using the downloaded pre1 code from the site.
I had to change it to obj = obj.find("a:first"); for it to work with my app. This selector (.children("a:eq(0)")) is used 8 times in the app, do you think it could be made configurable? Or is there a better solution I'm not seeing?
Thanks
The text was updated successfully, but these errors were encountered:
I am currently working on implementing jstreegrid in the core (it is a user plugin) - that will allow for tree grids. pre 1.0 versions have very strict requirements regarding the html contents of each node, this is why your code is not working. I will do my best for the upcoming 1.0 version (there already are major changes in the way HTML is treated).
Hi
First of all, thanks for this awesome plugin!
My tree outputs extra elements so that it can have columns on the right with check boxes for stuff. It looks like this:
The problem occurs when using the dnd plugin (with html_data and themes) and you start to drag an element. It can't find the first child anchor because it's inside a div and it fails - https://github.com/vakata/jstree/blob/v.pre1.0/jquery.jstree.js#L801 I'm using the downloaded pre1 code from the site.
I had to change it to
obj = obj.find("a:first");
for it to work with my app. This selector (.children("a:eq(0)")
) is used 8 times in the app, do you think it could be made configurable? Or is there a better solution I'm not seeing?Thanks
The text was updated successfully, but these errors were encountered: