Skip to content

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

Open
@somnath157

Description

@somnath157

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions