From 6e5df95e0a1c153c4e631f7aec7932ffe6a211c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 18 Nov 2020 22:11:16 +0100 Subject: [PATCH] Use the original card description for replacing the checkboxes (fixes #2580) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/card/Description.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/card/Description.vue b/src/components/card/Description.vue index d021e1735..be322c9b5 100644 --- a/src/components/card/Description.vue +++ b/src/components/card/Description.vue @@ -180,7 +180,7 @@ export default { const clickedIndex = [...document.querySelector('#description-preview').querySelectorAll('input')].findIndex((li) => li.id === e.target.id) const reg = /\[(X|\s|_|-)\]/ig let nth = 0 - const updatedDescription = this.description.replace(reg, (match, i, original) => { + const updatedDescription = this.card.description.replace(reg, (match, i, original) => { let result = match if ('' + nth++ === '' + clickedIndex) { if (match.match(/^\[\s\]/i)) {