Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Apr 29, 2016
1 parent 20ff131 commit 3baf5b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/infinite-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3baf5b9

Please sign in to comment.