浏览代码

Make sure chat scrolls down once image has loaded

JC Brand 4 年之前
父节点
当前提交
a921e303ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/templates/directives/body.js

+ 1 - 1
src/templates/directives/body.js

@@ -13,7 +13,7 @@ class MessageBodyRenderer {
     }
 
     onImageLoaded () {
-        this.component.dispatchEvent(new CustomEvent('imageLoaded', { detail: this.component }));
+        this.component.dispatchEvent(new CustomEvent('imageLoaded', { detail: this.component, 'bubbles': true }));
     }
 
     async transform () {