mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	[treeList] Ensure removed item is also removed from selected set
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user