summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread/thread.js
diff options
context:
space:
mode:
authorThanh Dodeur <tso@odoo.com>2020-11-10 06:25:22 +0000
committerThanh Dodeur <tso@odoo.com>2020-12-16 11:48:46 +0000
commit31f71f500b88aa3eb0688ab990d0c5f00676c71e (patch)
tree3c4250dc716315526594cf62f057884040939ebb /addons/mail/static/src/models/thread/thread.js
parentfb68cc93f9a04adf5430f1ed473b62110edd8ef8 (diff)
[FIX] mail: prevents image loading errors
Before this commit, an event listener was still active after the removal of the attachment viewer, which caused the the onLoad function to be called on an removed component if the component was unmounted before the image was loaded. This commit fixes this issue by adding the eventListener through the owl template. Additionally, when a new image was loading, the old image was kept in the dom until the end of the loading of the new image, this commit also fixes this issue by adding a t-key on the image element. part of task-2363522 closes odoo/odoo#61560 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread/thread.js')
0 files changed, 0 insertions, 0 deletions