delph-in / matrix

The Grammar Matrix
https://matrix.ling.washington.edu/index.html
Other
11 stars 6 forks source link

Bug in type hierarchy visualizer (questionnaire) #690

Open emilymbender opened 5 months ago

emilymbender commented 5 months ago

Also, the visualizer has a subtle bug: it will work only if all the types are shown expanded on the page. Line 58 in draw.js tries to read the value of the supertypes input element of each type, and if a type is collapsed, the "document.getElementById(lts[i]+"_supertypes_multitext")" value will be undefined (since the input field is removed rather than hidden), which will cause the next line to throw an exception.