fix: Reload textarea on spellcheck pref change (#690)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user