From 3f922fffd2af2de9ae440d2414f407e5bffd07ee Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Wed, 4 Nov 2020 23:41:13 +0100 Subject: [PATCH] Use the right value of moveBefore --- list-editor/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list-editor/index.js b/list-editor/index.js index 896c8c7..dec5b48 100644 --- a/list-editor/index.js +++ b/list-editor/index.js @@ -377,7 +377,7 @@ function editor(root, inputData, options) { } let newPosition = store.moveBefore(startID, stopID) - cursor.set(newPosition) + cursor.set(newPosition[0]) _.defer(() => { trigger('change')