diff --git a/list-editor/index.js b/list-editor/index.js index fc060d8..f822712 100644 --- a/list-editor/index.js +++ b/list-editor/index.js @@ -294,7 +294,7 @@ function editor(root, inputData, options) { let text = element.val() $(element).closest('.list-item').removeClass('editor'); - store.update(element.attr('data-id'), (value) => { + store.update(element.data('id'), (value) => { return _.merge(value, { text: text })