Merge #18379 - Fix #14411 - Double tap to edit on Mobile

Fixes: #14411
Pull-request: #18379

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2023-07-14 18:59:36 +02:00
commit 7de25be000
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -2062,8 +2062,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.
@ -2097,7 +2097,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 {