From c4f983cf391bc50c074433e711c48ec8abc39add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 11 Nov 2023 19:34:27 +0100 Subject: [PATCH] Prevent switching row when double click on expander Closes #12732 (grafted from f1ce4d6a8fe85a007eae863ce9ecea181f725de7) --HG-- branch : 6.0 --- sao/src/view/tree.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sao/src/view/tree.js b/sao/src/view/tree.js index bd8caa4bb3..2a019ee712 100644 --- a/sao/src/view/tree.js +++ b/sao/src/view/tree.js @@ -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++) {