From 8bf88bf78013f41d8afda95c5615e5b0c59401b7 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 16 Jun 2021 15:49:44 -0500 Subject: [PATCH] fix: set the movement signal to undefined after handleMove --- lib/elements/list.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/elements/list.tsx b/lib/elements/list.tsx index 929a5c4..51a8ca3 100644 --- a/lib/elements/list.tsx +++ b/lib/elements/list.tsx @@ -14,7 +14,7 @@ export function ListElement(props: Props) { // current active id const isSelected = createSelector(getActiveIndex) // movement state - const [getMovement, setMovement] = createSignal("move-to-top") + const [getMovement, setMovement] = createSignal("move-to-top") // selected state const [getConfirmed, setConfirmed] = createSignal(false) @@ -54,7 +54,7 @@ export function ListElement(props: Props) { } // unset the movement to allow solid to check the next movement - setMovement("") + setMovement(undefined) } createComputed(