Browse Source

Make sure chat scrolls down once image has loaded

JC Brand 4 years ago
parent
commit
a921e303ac
1 changed files with 1 additions and 1 deletions
  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 () {