diff --git a/src/spell-check-handler.js b/src/spell-check-handler.js index f860dd8..1bed788 100644 --- a/src/spell-check-handler.js +++ b/src/spell-check-handler.js @@ -401,9 +401,11 @@ module.exports = class SpellCheckHandler { if (!dict) { d(`dictionary for ${langCode}_${actualLang} is not available`); - this.currentSpellcheckerLanguage = actualLang; - this.currentSpellchecker = null; - this.currentSpellcheckerChanged.next(true); + if (this.currentSpellcheckerLanguage !== actualLang) { + this.currentSpellcheckerLanguage = actualLang; + this.currentSpellchecker = null; + this.currentSpellcheckerChanged.next(true); + } return; }