aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-12 20:35:11 -0500
committerGitHub <noreply@github.com>2020-11-12 20:35:11 -0500
commit20f3d09aa457d57331925b4fdf0632ee0237da99 (patch)
tree7c9ba59909f5ad09f09f58000447bc6ee94427f7 /ext/bg/js/settings
parentec021964b7311d02fdbc5531564074f145043b91 (diff)
Clear cached definition when rendering a template (#1022)
Diffstat (limited to 'ext/bg/js/settings')
-rw-r--r--ext/bg/js/settings/anki-templates-controller.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/bg/js/settings/anki-templates-controller.js b/ext/bg/js/settings/anki-templates-controller.js
index e1e01627..35a08476 100644
--- a/ext/bg/js/settings/anki-templates-controller.js
+++ b/ext/bg/js/settings/anki-templates-controller.js
@@ -136,6 +136,7 @@ class AnkiTemplatesController {
const field = this._renderFieldInput.value;
const infoNode = this._renderResult;
infoNode.hidden = true;
+ this._cachedDefinitionText = null;
this._validate(infoNode, field, 'term-kanji', true, false);
}