From 63b9bf5ae75ca3afc983880b4f79db50a6a7005b Mon Sep 17 00:00:00 2001 From: Bobbie Goede Date: Fri, 19 Apr 2024 11:10:07 +0200 Subject: [PATCH] fix: return to previous state after hovered event variant --- 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