From 310b32c1235220144fdb87592a005d67a94fe9bf Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Mon, 26 Feb 2024 22:11:21 +0900 Subject: [PATCH] fix: allow to edit alt description of attached image again (#2631) --- components/publish/PublishAttachment.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/publish/PublishAttachment.vue b/components/publish/PublishAttachment.vue index 31b9f71d..5c2e2ec8 100644 --- a/components/publish/PublishAttachment.vue +++ b/components/publish/PublishAttachment.vue @@ -19,7 +19,8 @@ const emit = defineEmits<{ const maxDescriptionLength = 1500 const isEditDialogOpen = ref(false) -const description = computed(() => props.attachment.description ?? '') +const description = ref(props.attachment.description ?? '') + function toggleApply() { isEditDialogOpen.value = false emit('setDescription', description.value)