Closed tacman closed 10 months ago
I believe this has nothing to do with ESM loading - try wrapping the UL in a DIV, and create the jstree instance on the DIV, not the UL.
yep, perfect, thanks! Working example at https://jsfiddle.net/tacman1123/3e8j7qkc/5/
I see that jstree is on jsdelivr and has an ESM section:
https://www.jsdelivr.com/package/npm/jstree
I'm excited about using importmaps and modules, and was hoping to get this working.
The jstree() call is made, but it ends up removing the nodes. Is it possible to get jstree to work this way? Thanks.