fix(frontend): skip task detail on label and checkbox clicks

Defense in depth for the list-view row click handler: a click that
lands on a label or checkbox input no longer bubbles up to open the
task detail.
This commit is contained in:
kolaente 2026-05-05 16:55:38 +02:00 committed by kolaente
parent 1ea5675e1b
commit 9bea92bb6f
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ function hasTextSelected() {
function openTaskDetail(event: MouseEvent | KeyboardEvent) {
if (event.target instanceof HTMLElement) {
const isInteractiveElement = event.target.closest('a, button, .favorite, [role="button"]')
const isInteractiveElement = event.target.closest('a, button, label, input[type="checkbox"], .favorite, [role="button"]')
if (isInteractiveElement || hasTextSelected()) {
return
}