diff --git a/CHANGELOG.md b/CHANGELOG.md index 83f2ab8d6..8b4958f86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ Notable changes to Mailpit will be documented in this file. +## v1.2.9 + +### Bugfix +- Delay 200ms to set `target="_blank"` for all rendered email links + + ## v1.2.8 ### Bugfix diff --git a/server/ui-src/templates/Message.vue b/server/ui-src/templates/Message.vue index 2a2e9de71..06db83845 100644 --- a/server/ui-src/templates/Message.vue +++ b/server/ui-src/templates/Message.vue @@ -66,8 +66,8 @@ export default { document.activeElement.blur(); // blur focus document.getElementById('message-view').scrollTop = 0; - // delay until vue has rendered - self.$nextTick(function () { + // delay 0.2s until vue has rendered the iframe content + window.setTimeout(function () { let p = document.getElementById('preview-html'); if (p) { // make links open in new window @@ -82,7 +82,7 @@ export default { } self.resizeIframes(); } - }); + }, 200); // html highlighting window.Prism = window.Prism || {};