fperucic / treant-js

Treant.js - javascript library for drawing tree diagrams
MIT License
862 stars 314 forks source link

Bug: text.data-foo doesn't work for JSON format #169

Open Pefren opened 3 years ago

Pefren commented 3 years ago

Hey. I use JSON to build the tree, use data-foo but don't see data-foo attribute anywhere on the page (using searchbox). Btw I want to make tooltips and pass strings to custom data-tooltip attributes I use 1.0.1 treant version and anything else i need works great. Thoughts?

image

Pefren commented 3 years ago

I decided to use innerHtml instead of text...

TimBurris commented 1 year ago

i faced the same issue here in 2023, turns out, the "release" and also cdnjs have not been updated in forever. however, if you pull the Treat.js file from github directly, it does seem to work (for me).

moral of the story, don't trust cdnjs or even the github releases to be up to date.