From 72de9516b8b740756236d82301f22e681dbec3c7 Mon Sep 17 00:00:00 2001 From: Johnny Almonte Date: Wed, 24 Jun 2020 23:51:41 -0400 Subject: [PATCH] fix: 'Spellcheck' option removes note editor from view --- app/assets/javascripts/views/editor/editor_view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/views/editor/editor_view.ts b/app/assets/javascripts/views/editor/editor_view.ts index 9d8904f9a..0482a7a6a 100644 --- a/app/assets/javascripts/views/editor/editor_view.ts +++ b/app/assets/javascripts/views/editor/editor_view.ts @@ -1033,8 +1033,8 @@ class EditorViewCtrl extends PureViewCtrl implements EditorViewScope { if (key === WebPrefKey.EditorSpellcheck) { /** Allows textarea to reload */ + await this.setEditorState({ textareaUnloading: true }); await this.setEditorState({ textareaUnloading: false }); - this.setEditorState({ textareaUnloading: true }); this.reloadFont(); } else if (key === WebPrefKey.EditorResizersEnabled && this.state[key] === true) { this.$timeout(() => {