Skip to content

Commit

Permalink
fix: set the movement signal to undefined after handleMove
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jun 16, 2021
1 parent 818b7ff commit 8bf88bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/elements/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | undefined>("move-to-top")
// selected state
const [getConfirmed, setConfirmed] = createSignal(false)

Expand Down Expand Up @@ -54,7 +54,7 @@ export function ListElement(props: Props) {
}

// unset the movement to allow solid to check the next movement
setMovement("")
setMovement(undefined)
}

createComputed(
Expand Down

0 comments on commit 8bf88bf

Please sign in to comment.