From cc1aa640074df6a64ea327eacbd2f91e041bc912 Mon Sep 17 00:00:00 2001 From: krantheman Date: Thu, 5 Feb 2026 17:38:52 +0700 Subject: [PATCH] fix: grid row selection on touch --- frappe/public/js/frappe/form/grid.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/form/grid.js b/frappe/public/js/frappe/form/grid.js index 1bf448ef25..6b5ade51b0 100644 --- a/frappe/public/js/frappe/form/grid.js +++ b/frappe/public/js/frappe/form/grid.js @@ -195,7 +195,10 @@ export default class Grid { } setup_check() { - this.wrapper.on("click", ".grid-row-check", (e) => { + this.wrapper.on("click touchend", ".grid-row-check", (e) => { + e.stopPropagation(); + if (e.type === "touchend") return; + const $check = $(e.currentTarget); const checked = $check.prop("checked"); const is_select_all = $check.parents(".grid-heading-row:first").length !== 0;