Prevent switching row when double click on expander

Closes #12732
(grafted from f1ce4d6a8fe85a007eae863ce9ecea181f725de7)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2023-11-11 19:34:27 +01:00
1 parent 21bf2e841b
commit c4f983cf39
1 file changed
+5
+5
View File
@@ -1349,6 +1349,11 @@
this.expander.children().html(' ');
this.expander.on('click keypress',
Sao.common.click_press(this.toggle_row.bind(this)));
this.expander.dblclick(function (evt) {
// prevent calling switch_row on td
evt.preventDefault();
evt.stopImmediatePropagation();
});
}
for (var i = 0; i < this.tree.columns.length; i++) {