Skip to content

Commit

Permalink
(fix) add roomTextarea ref existing check
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine92190 committed Sep 3, 2020
1 parent 8603e42 commit 9943ee4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ChatWindow/Room.vue
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ export default {
},
focusTextarea(disableMobileFocus) {
if (detectMobile() && disableMobileFocus) return
if (!this.$refs['roomTextarea']) return
this.$refs['roomTextarea'].focus()
},
isMessageEmpty() {
Expand Down

0 comments on commit 9943ee4

Please sign in to comment.