fix(mail(js)): avoid updating the DOM before closing editor

When destroying the CKEditor instance (closing the mail editor in HTML mode), we no longer try to update the associated textarea because we're removing it anyway.
pull/284/merge
Francis Lachapelle 2021-04-09 17:57:08 -04:00
parent 716d739b85
commit bed91ce95a
1 changed files with 2 additions and 1 deletions

View File

@ -319,8 +319,9 @@
}
this.$onDestroy = function () {
var noUpdate = true;
editorElement.classList.add('ng-cloak');
editor.destroy();
editor.destroy(noUpdate);
}
function onInstanceReady (event) {