mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
[treeList] Ensure removed item is also removed from selected set
This commit is contained in:
parent
64d2e80690
commit
e674d9246b
@ -320,6 +320,7 @@
|
||||
item.parent.children.splice(index,1)
|
||||
that._trigger("sort",null,item.parent);
|
||||
}
|
||||
that._selected.delete(item);
|
||||
delete item.treeList;
|
||||
delete(that._items[item.id]);
|
||||
}
|
||||
@ -467,15 +468,6 @@
|
||||
item.treeList.container = container;
|
||||
|
||||
item.treeList.parentList = parentList;
|
||||
// item.treeList.remove = function() {
|
||||
// parentList.editableList('removeItem',item);
|
||||
// if (item.parent) {
|
||||
// var index = item.parent.children.indexOf(item);
|
||||
// item.parent.children.splice(index,1)
|
||||
// that._trigger("sort",null,item.parent);
|
||||
// }
|
||||
// delete(that._items[item.id]);
|
||||
// }
|
||||
|
||||
var label = $("<div>",{class:"red-ui-treeList-label"}).appendTo(container);
|
||||
item.treeList.label = label;
|
||||
|
Loading…
Reference in New Issue
Block a user