Posted 14 September 2017, 12:12 pm EST
We use the following code to change the wijmo culture in our Angular4 app:
private changeWijmoCulture(lang: string) { $.getScript('assets/i18n/wijmo/wijmo.culture.${lang}.js', () => { // invalidate all controls to show new culture Control.invalidateAll(); }); }
This basically works concerning the localization.
However, now we discovered that Control.InvalidateAll has side-effects in our forms. For instance, if we use a <wj-input-time> in our NgForm, the value changes from the current value to 00:00 and back to the current value.
e.g. 08:30 -> 00:00 -> 08:30
This leads to the NgForm becoming dirty, and also the <wj-input-time> gets the ng-dirty class added (and thus ng-prestine removed).
Is this a bug? Or how is the recommended way to change the current culture for wijmo?
