From a70395ca56c3bd419082720e7efd9a31c2d6b8cf Mon Sep 17 00:00:00 2001 From: SeungminAhn Date: Mon, 24 Apr 2023 22:04:09 +0900 Subject: [PATCH] reload icon when node name is changed When the name of a node with an open or close icon is changed, this previously set icon disappears. To prevent this, reload icon after rename_node is called. No need for recursive call because only icon of this particular node was removed. Signed-off-by: SeungminAhn --- js/lib/tree.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/lib/tree.js b/js/lib/tree.js index 708c62a..96100f1 100644 --- a/js/lib/tree.js +++ b/js/lib/tree.js @@ -183,6 +183,7 @@ export class NodeView extends widgets.WidgetView { handleNameChange() { this.tree.rename_node(this.model.get('_id'), this.model.get('name')); + this.setOpenCloseIcon(false); } handleOpenedChange() {