Skip to content

Commit 9943ee4

Browse files
committed
(fix) add roomTextarea ref existing check
1 parent 8603e42 commit 9943ee4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ChatWindow/Room.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ export default {
469469
},
470470
focusTextarea(disableMobileFocus) {
471471
if (detectMobile() && disableMobileFocus) return
472+
if (!this.$refs['roomTextarea']) return
472473
this.$refs['roomTextarea'].focus()
473474
},
474475
isMessageEmpty() {

0 commit comments

Comments
 (0)