Prevent switching row when double click on expander

Closes #12732
(grafted from f1ce4d6a8fe85a007eae863ce9ecea181f725de7)

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