Browse Source

Make sure chat scrolls down once image has loaded

JC Brand 4 năm trước cách đây
mục cha
commit
a921e303ac
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 () {