mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
Smart annotation is not saved on checklist item [SCI-9829]
This commit is contained in:
parent
94e8a8d89f
commit
18380402fc
1 changed files with 6 additions and 1 deletions
|
@ -40,7 +40,7 @@
|
|||
@update="updateText"
|
||||
@delete="removeItem()"
|
||||
@keypress="keyPressHandler"
|
||||
@blur="editingText = false"
|
||||
@blur="onBlurHandler"
|
||||
/>
|
||||
<span v-if="!editingText && (!checklistItem.attributes.urls || deleteUrl)" class="absolute right-0 top-0.5 leading-6 tw-hidden group-hover/checklist-item-header:inline-block !text-sn-blue cursor-pointer" @click="showDeleteModal" tabindex="0">
|
||||
<i class="sn-icon sn-icon-delete"></i>
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue