Skip to content

Commit b8e31d6

Browse files
committed
(fix) resize textarea after reming image
1 parent a221ac6 commit b8e31d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/Room/Room.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,7 @@ export default {
792792
this.videoFile = null
793793
this.editedMessage.file = null
794794
this.file = null
795+
this.resetTextareaSize()
795796
this.focusTextarea()
796797
},
797798
resetTextareaSize() {
@@ -949,7 +950,7 @@ export default {
949950
950951
if (items) {
951952
items.forEach(item => {
952-
if (item.type.indexOf('image') !== -1) {
953+
if (item.type.includes('image')) {
953954
const blob = item.getAsFile()
954955
this.onFileChange([blob])
955956
}

0 commit comments

Comments
 (0)