We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcff654 commit 1367a35Copy full SHA for 1367a35
src/ChatWindow/Room.vue
@@ -329,7 +329,10 @@ export default {
329
this.loadingMessages = true
330
this.scrollIcon = false
331
this.resetMessage(true)
332
- this.message = this.roomMessage
+ if (this.roomMessage) {
333
+ this.message = this.roomMessage
334
+ setTimeout(() => this.onChangeInput(), 0)
335
+ }
336
}
337
},
338
messages(newVal, oldVal) {
@@ -543,6 +546,8 @@ export default {
543
546
resizeTextarea() {
544
547
const el = this.$refs['roomTextarea']
545
548
549
+ if (!el) return
550
+
551
const padding = window
552
.getComputedStyle(el, null)
553
.getPropertyValue('padding-top')
0 commit comments