herum-shared 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1414,7 +1414,7 @@ class QuizMultiAnswerQuestionComponent {
1414
1414
  this.question.closedContent?.answers?.forEach((answer, index) => {
1415
1415
  const controlName = this.answerControlNamePrefix + index;
1416
1416
  this.answersForm.addControl(controlName, new FormControl(this.getFormControlValue(index)));
1417
- if (isToInitializeFormControls) {
1417
+ if (isToInitializeFormControls || changes['question'].isFirstChange()) {
1418
1418
  this.answersForm.get(controlName).valueChanges
1419
1419
  .pipe(takeUntil(this.destroySubject$))
1420
1420
  .subscribe((isChosen) => this._onAnswersChange(this.question.closedContent?.answers[index], isChosen));