Commit c8841a54 authored by yann300's avatar yann300

fixTreeView

parent a6fd3e62
...@@ -58,6 +58,8 @@ class TreeView { ...@@ -58,6 +58,8 @@ class TreeView {
list.style.display = list.style.display === 'none' ? 'block' : 'none' list.style.display = list.style.display === 'none' ? 'block' : 'none'
self.nodeIsExpanded[keyPath] = list.style.display === 'block' self.nodeIsExpanded[keyPath] = list.style.display === 'block'
} }
} else {
label.firstElementChild.style.display = 'none'
} }
return yo`<li style=${this.cssLi}>${label}${renderedChildren}</li>` return yo`<li style=${this.cssLi}>${label}${renderedChildren}</li>`
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment