From 18380402fc5e0270cee6eadaf2d86a09225e5b33 Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Thu, 7 Dec 2023 11:35:02 +0400 Subject: [PATCH] Smart annotation is not saved on checklist item [SCI-9829] --- app/javascript/vue/shared/content/checklistItem.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/javascript/vue/shared/content/checklistItem.vue b/app/javascript/vue/shared/content/checklistItem.vue index 3db4d13a5..9c4420e65 100644 --- a/app/javascript/vue/shared/content/checklistItem.vue +++ b/app/javascript/vue/shared/content/checklistItem.vue @@ -40,7 +40,7 @@ @update="updateText" @delete="removeItem()" @keypress="keyPressHandler" - @blur="editingText = false" + @blur="onBlurHandler" /> @@ -139,6 +139,11 @@ this.checklistItem.attributes.checked = this.$refs.checkbox.checked; this.$emit('toggle', this.checklistItem); }, + onBlurHandler() { + this.$nextTick(() => { + this.editingText = false; + }); + }, updateText(text, withKey) { if (text.length === 0) { this.disableTextEdit();