From 3baf5b9653f5bccc8ab8e7893bc8bef96d47bb00 Mon Sep 17 00:00:00 2001 From: Cheton Wu Date: Fri, 29 Apr 2016 23:26:18 +0800 Subject: [PATCH] v1.1.1 --- dist/infinite-tree.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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