From 6c9618252b5f95697b2a103417cc0d143d07ee53 Mon Sep 17 00:00:00 2001 From: bboysoul Date: Wed, 23 Sep 2026 11:48:46 +0800 Subject: [PATCH] fix: skip closed inline teleports so sheets never mount against a missing target --- frontend/src/components/AppSheet.vue | 2 +- frontend/src/style.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/AppSheet.vue b/frontend/src/components/AppSheet.vue index 100129a..de014f5 100644 --- a/frontend/src/components/AppSheet.vue +++ b/frontend/src/components/AppSheet.vue @@ -100,7 +100,7 @@ onBeforeUnmount(deactivate) - + diff --git a/frontend/src/style.test.ts b/frontend/src/style.test.ts index e883915..1aed6e8 100644 --- a/frontend/src/style.test.ts +++ b/frontend/src/style.test.ts @@ -1532,7 +1532,7 @@ describe('desktop task and habit detail disclosure', () => { expect(mvpPanel).toContain('if (busy.value && !force) return') expect(mvpPanel).toContain(':modal="compactLayout"') expect(mvpPanel).toContain('inline-target=".shell"') - expect(appSheet).toContain(``) + expect(appSheet).toContain(``) expect(mvpPanel).toContain("watch(selectedHabit, (habit) => emit('detail', Boolean(habit)))") expect(app).toContain('@click="closeTaskDetail"') expect(app).toContain('function closeTaskDetail()')