diff options
Diffstat (limited to 'ext/bg/js/settings/anki-templates-controller.js')
-rw-r--r-- | ext/bg/js/settings/anki-templates-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/settings/anki-templates-controller.js b/ext/bg/js/settings/anki-templates-controller.js index edf6f2c8..e68656c5 100644 --- a/ext/bg/js/settings/anki-templates-controller.js +++ b/ext/bg/js/settings/anki-templates-controller.js @@ -210,7 +210,7 @@ class AnkiTemplatesController { infoNode.textContent = hasException ? exceptions.map((e) => `${e}`).join('\n') : (showSuccessResult ? result : ''); infoNode.classList.toggle('text-danger', hasException); if (invalidateInput) { - this._fieldTemplatesTextarea.classList.toggle('is-invalid', hasException); + this._fieldTemplatesTextarea.dataset.invalid = `${hasException}`; } } |