diff --git a/dist/infinite-tree.js b/dist/infinite-tree.js index 0a541e7..768e0e9 100644 --- a/dist/infinite-tree.js +++ b/dist/infinite-tree.js @@ -197,8 +197,9 @@ return /******/ (function(modules) { // webpackBootstrap return; } + // Use setTimeout(fn, 0) to re-queues the selectNode operation, it allows the click event to bubble up to higher level event handlers. setTimeout(function () { - _this.selectNode(node); + _this.selectNode(node); // selectNode will re-render the tree }, 0); }, // https://developer.mozilla.org/en-US/docs/Web/Events/dragstart