Skip to content

Commit

Permalink
delay selection until nodes are actually loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
stoerr committed Dec 8, 2022
1 parent 851885d commit 827c024
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,13 @@
if (this.log.getLevel() <= log.levels.DEBUG) {
this.log.debug(this.nodeIdPrefix + 'tree.onPathInserted(' + parentPath + ',' + nodeName + ')>>>:' + nodeId);
}
this.preventFromSelect = true; // nodes have to be loaded before being selected
this.ensureNodeExists(parentPath, _.bind(function () {
this.refreshNodeById(nodeId, _.bind(function () {
if (this.log.getLevel() <= this.log.levels.DEBUG) {
this.log.debug(this.nodeIdPrefix + 'tree.onPathInserted(' + parentPath + ',' + nodeName + ').exit.');
}
this.preventFromSelect = false;
}, this));
}, this));
},
Expand Down

0 comments on commit 827c024

Please sign in to comment.