diff --git a/src/view/tree.js b/src/view/tree.js index 9047f6a424..427fdd0b20 100644 --- a/src/view/tree.js +++ b/src/view/tree.js @@ -878,8 +878,12 @@ }).append(jQuery('', { // For responsive min-height 'aria-hidden': true })); - td.on('click keypress', {'index': i}, - this.select_column.bind(this)); + td.on('click keypress', {'index': i}, function() { + if (this.expander && !this.is_expanded()) { + this.toggle_row(); + } + this.select_column(); + }.bind(this)); if (!this.tree.editable) { td.dblclick(this.switch_row.bind(this)); } else {