Merge pull request #501 from ethereum/fixTreeView

Fix TreeView
pull/7/head
yann300 8 years ago committed by GitHub
commit b9b0ffaa85
  1. 2
      src/ui/TreeView.js

@ -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>`
} }

Loading…
Cancel
Save