mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 14:57:12 +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:
1 parent
716d739b85
commit
bed91ce95a
1 file changed
+2
-1
@@ -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