mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-11 16:28:51 +00:00
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.
This commit is contained in:
@@ -319,8 +319,9 @@
|
||||
}
|
||||
|
||||
this.$onDestroy = function () {
|
||||
var noUpdate = true;
|
||||
editorElement.classList.add('ng-cloak');
|
||||
editor.destroy();
|
||||
editor.destroy(noUpdate);
|
||||
}
|
||||
|
||||
function onInstanceReady (event) {
|
||||
|
||||
Reference in New Issue
Block a user