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 a16bc1c commit 46b50ffCopy full SHA for 46b50ff
src/lib/Room/Room.vue
@@ -613,10 +613,12 @@ export default {
613
614
const observer = new ResizeObserver(_ => {
615
if (container.scrollHeight !== prevScrollHeight) {
616
- this.$refs.scrollContainer.scrollTo({
617
- top: container.scrollHeight - prevScrollHeight
618
- })
619
- observer.disconnect()
+ if (this.$refs.scrollContainer) {
+ this.$refs.scrollContainer.scrollTo({
+ top: container.scrollHeight - prevScrollHeight
+ })
620
+ observer.disconnect()
621
+ }
622
}
623
})
624
0 commit comments