From 05e7251e9d69736276f535d0bbb3e3d9abcf162f Mon Sep 17 00:00:00 2001 From: Bobbie Goede Date: Fri, 19 Apr 2024 14:15:16 +0200 Subject: [PATCH] fix: return to previous state after hovered event variant (#183) --- src/features/eventListeners.ts | 5 ++--- src/features/lifeCycleHooks.ts | 9 ++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/features/eventListeners.ts b/src/features/eventListeners.ts index 2a2a5f92..2ec334e1 100644 --- a/src/features/eventListeners.ts +++ b/src/features/eventListeners.ts @@ -12,7 +12,7 @@ export function registerEventListeners { - let result: string[] = [] + let result: string[] = [...Object.keys(state.value || {})] if (!_variants) return result @@ -26,7 +26,7 @@ export function registerEventListeners { - const result = {} + const result: Partial = {} Object.assign(result, state.value) @@ -37,7 +37,6 @@ export function registerEventListeners