Skip to content

Commit

Permalink
fix text being reset after edit submit
Browse files Browse the repository at this point in the history
  • Loading branch information
Equim-chan committed Mar 30, 2023
1 parent f397eed commit 9ca821c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/chat/components/Message/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function handleEdit() {
}
function handleEditSubmit(text: string) {
origTextRef.value = ''
origTextRef.value = null
emit('editSubmit', text)
edit.value = false
}
Expand Down

0 comments on commit 9ca821c

Please sign in to comment.