mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Merge pull request #5956 from ivanscinote/SCI-9008-share-task-modal
Move blur event to whole modal at Share task [SCI-9008]
This commit is contained in:
commit
d8da463dc2
|
@ -47,8 +47,7 @@
|
|||
v-model="description"
|
||||
:placeholder="i18n.t('shareable_links.modal.description_placeholder')"
|
||||
:disabled="!sharedEnabled"
|
||||
@focus="editing = true"
|
||||
@blur="handleTextareaBlur">
|
||||
@focus="editing = true">
|
||||
</textarea>
|
||||
</div>
|
||||
<div v-if="error" class="text-xs shareable-link-error">
|
||||
|
@ -189,13 +188,6 @@
|
|||
this.characterCount = this.$refs.textarea.value.length;
|
||||
});
|
||||
},
|
||||
handleTextareaBlur() {
|
||||
this.editing = false;
|
||||
|
||||
if (!this.dirty) {
|
||||
this.description = this.shareableData.attributes.description || '';
|
||||
}
|
||||
},
|
||||
handleCheckboxEnter() {
|
||||
this.sharedEnabled = !this.sharedEnabled;
|
||||
this.checkboxChange();
|
||||
|
|
Loading…
Reference in a new issue