From 5e1422f6840b0dcd13d0fbad4070cd945b31de1d Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Tue, 27 Oct 2020 07:38:07 +0100 Subject: [PATCH] Fix: use data('id') on textarea --- 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 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 })