From f5a752d873bc308d8054b37449d987a6d8bdd961 Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Thu, 26 Feb 2026 16:44:22 -0500 Subject: [PATCH] fix: reset ready state on outside click and prevent task trigger on ignored clicks --- frontend/vue-app/src/components/child/ParentView.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/vue-app/src/components/child/ParentView.vue b/frontend/vue-app/src/components/child/ParentView.vue index d8ba505..eb0638c 100644 --- a/frontend/vue-app/src/components/child/ParentView.vue +++ b/frontend/vue-app/src/components/child/ParentView.vue @@ -286,6 +286,9 @@ const onDocClick = (e: MouseEvent) => { selectedChoreId.value = null if (path.some((n) => n instanceof HTMLElement && n.classList.contains('item-card'))) { shouldIgnoreNextCardClick.value = true + } else { + // Clicked fully outside any card — reset ready state so chore requires 2 clicks again + readyItemId.value = null } } } @@ -550,6 +553,10 @@ function getPendingRewardIds(): string[] { } const triggerTask = (task: Task) => { + if (shouldIgnoreNextCardClick.value) { + shouldIgnoreNextCardClick.value = false + return + } selectedTask.value = task const pendingRewardIds = getPendingRewardIds() if (pendingRewardIds.length > 0) {