tree: fix small error
This commit is contained in:
parent
859f583ad1
commit
e8ecb121f5
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ class UiTree extends UiWidget {
|
|||
showWidget(widget) {
|
||||
|
||||
var node = DOM.get(this.list, `[data-widget="${widget.hash}"]`)
|
||||
if (node) {
|
||||
if (node.length) {
|
||||
node = node[0]
|
||||
var parent = node.parentNode
|
||||
while (parent !== this.list) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue