Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
somnath157 opened this issue Mar 10, 2021 · 1 comment
Labels

Comments

@somnath157
Copy link

somnath157 commented Mar 10, 2021

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
      });
    }
  }
@tsv2013
Copy link
Member

tsv2013 commented Mar 31, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants