Clear cached definition when rendering a template (#1022)

This commit is contained in:
toasted-nutbread 2020-11-12 20:35:11 -05:00 committed by GitHub
parent ec021964b7
commit 20f3d09aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}