Expand row on first click

issue7656
review64341002
This commit is contained in:
Cédric Krier committed 2018-09-01 10:51:15 +02:00
1 parent 9fd0250320
commit aab6fafe4e
1 file changed
+6 -2
+6 -2
View File
@@ -878,8 +878,12 @@
}).append(jQuery('<span/>', { // 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 {