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:
artoscinote 2023-08-21 12:04:54 +02:00 committed by GitHub
commit d8da463dc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();