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:
parent
1ea5675e1b
commit
9bea92bb6f
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue