fix: stop propagation only when necessary

This commit is contained in:
krantheman 2026-02-06 18:52:45 +07:00
parent cc1aa64007
commit 58b61343c4

View file

@ -196,8 +196,10 @@ export default class Grid {
setup_check() {
this.wrapper.on("click touchend", ".grid-row-check", (e) => {
e.stopPropagation();
if (e.type === "touchend") return;
if (e.type === "touchend") {
e.stopPropagation();
return;
}
const $check = $(e.currentTarget);
const checked = $check.prop("checked");