From f73e1732946704428590f527d6d0d70d810b2037 Mon Sep 17 00:00:00 2001 From: szymon Date: Fri, 15 Nov 2024 07:57:51 +0100 Subject: [PATCH] fix modal open --- src/components/plugin/SectionTextarea.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/plugin/SectionTextarea.vue b/src/components/plugin/SectionTextarea.vue index 83db64f..3218364 100644 --- a/src/components/plugin/SectionTextarea.vue +++ b/src/components/plugin/SectionTextarea.vue @@ -59,9 +59,15 @@ export default { modelValue: Object }, mounted: function () { + let vm = this this.name = this.modelValue && this.modelValue.name ? this.modelValue.name : this.name this.text = this.modelValue && this.modelValue.text ? this.modelValue.text : this.text - if (this.modelValue.open) this.modalBox = true + if (this.modelValue.open) { + this.modalBox = true + setTimeout(function () { + vm.delayModal = true + }, 200) + } console.log('mounted textarea') this.$emit('update:modelValue', this.modelValue) },