custom-widgets icon indicating copy to clipboard operation
custom-widgets copied to clipboard

Changing locale throws error _this.widgetJson.willUnmount is not a function

Open somnath157 opened this issue 4 years ago • 1 comments

versions ng: 8.3.19 survey-angular: 1.8.3 surveyjs-widgets: 1.8.3

I am facing this issue when changing the locale of survey. when i change the locale of the survey website hang up and continues console error saying _this.widgetJson.willUnmount is not a function can be seen. it occurs at line "this.survey.locale = this._locale;"

 @Input() title: string;
  _locale;
  selectedLocale: string;
  @Input('locale')
  set locale(value: string) {
    this._locale = value;
    if (this.survey) {
      this.survey.locale = this._locale;
      Survey.SurveyNG.render(this.surveyElement.nativeElement, {
        model: this.survey,
        onValidateQuestion: this.surveyValidateQuestion
      });
    }
  }

somnath157 avatar Mar 10 '21 05:03 somnath157

Could you provide us a minimal sample to reproduce the issue?

tsv2013 avatar Mar 31 '21 11:03 tsv2013