Fix rendering of questions, they update now with the tags

This commit is contained in:
Pieter Vander Vennet 2020-12-27 21:44:49 +01:00
parent 0b28c5d319
commit 3179e59f53
3 changed files with 8 additions and 5 deletions

View file

@ -29,7 +29,12 @@ export class SubstitutedTranslation extends UIElement {
this.translation = translation;
this.tags = tags;
const self = this;
Locale.language.addCallbackAndRun(() => {
tags.addCallbackAndRun(() => {
self.content = self.CreateContent();
self.Update();
});
Locale.language.addCallback(() => {
self.content = self.CreateContent();
self.Update();
});