fix: Reload textarea on spellcheck pref change (#690)

This commit is contained in:
Aman Harwara
2021-10-17 18:40:41 +05:30
committed by GitHub
parent 474f1e60e3
commit 4ce9264572

View File

@@ -671,6 +671,13 @@ class EditorViewCtrl extends PureViewCtrl<unknown, EditorState> {
PrefKey.EditorResizersEnabled,
true
);
if (spellcheck !== this.state.spellcheck) {
await this.setState({ textareaUnloading: true });
await this.setState({ textareaUnloading: false });
this.reloadFont();
}
await this.setState({
monospaceFont,
spellcheck,