Merge pull request #36750 from frappe/grid-touch-selection

fix: grid row selection on touch
This commit is contained in:
Akash Tom 2026-02-09 09:02:24 +05:30 committed by GitHub
commit 5c21c73cbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -195,7 +195,12 @@ export default class Grid {
}
setup_check() {
this.wrapper.on("click", ".grid-row-check", (e) => {
this.wrapper.on("click touchend", ".grid-row-check", (e) => {
if (e.type === "touchend") {
e.stopPropagation();
return;
}
const $check = $(e.currentTarget);
const checked = $check.prop("checked");
const is_select_all = $check.parents(".grid-heading-row:first").length !== 0;