fix: grid row selection on touch

This commit is contained in:
krantheman 2026-02-05 17:38:52 +07:00
parent 9b24450337
commit cc1aa64007

View file

@ -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;