From 10381f7638562c3c7ac77ea91b961f6586c1c316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20Sch=C3=B3sz?= Date: Tue, 2 May 2023 21:39:58 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20Double=20tap=20to=20edit=20on=20Mobile=20?= =?UTF-8?q?Signed-off-by:=20Barnab=C3=A1s=20Sch=C3=B3sz=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/src/makegrid.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/makegrid.js b/js/src/makegrid.js index 6ccadac7aa..a40e1e21b6 100644 --- a/js/src/makegrid.js +++ b/js/src/makegrid.js @@ -2054,8 +2054,8 @@ var makeGrid = function (t, enableResize, enableReorder, enableVisib, enableGrid } }); - $(g.t).find('td.data.click2') - .on('click', function (e) { + $(g.t) + .on('click', 'td.data.click2', function (e) { var $cell = $(this); // In the case of relational link, We want single click on the link // to goto the link and double click to start grid-editing. @@ -2089,7 +2089,7 @@ var makeGrid = function (t, enableResize, enableReorder, enableVisib, enableGrid } } }) - .on('dblclick', function (e) { + .on('dblclick', 'td.data.click2', function (e) { if ($(e.target).is('.grid_edit a')) { e.preventDefault(); } else {