forked from Mirrors/elk
fix: allow to edit alt description of attached image again (#2631)
This commit is contained in:
parent
748dd5e19f
commit
310b32c123
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ const emit = defineEmits<{
|
||||||
const maxDescriptionLength = 1500
|
const maxDescriptionLength = 1500
|
||||||
|
|
||||||
const isEditDialogOpen = ref(false)
|
const isEditDialogOpen = ref(false)
|
||||||
const description = computed(() => props.attachment.description ?? '')
|
const description = ref(props.attachment.description ?? '')
|
||||||
|
|
||||||
function toggleApply() {
|
function toggleApply() {
|
||||||
isEditDialogOpen.value = false
|
isEditDialogOpen.value = false
|
||||||
emit('setDescription', description.value)
|
emit('setDescription', description.value)
|
||||||
|
|
Loading…
Reference in a new issue