diff --git a/list-editor/index.js b/list-editor/index.js index 5b6d4bc..bfff6b5 100644 --- a/list-editor/index.js +++ b/list-editor/index.js @@ -496,6 +496,11 @@ function editor(root, inputData, options) { let item = $(this).parents('.list-item') let id = item.attr('data-id') + // reset ids + _.each(items, item => { + item.id = null + }) + store.insertAfter(id, ...items) trigger('change')