From 69327c995d0d05f678f77e0afcb72da726ca111c Mon Sep 17 00:00:00 2001 From: Andrew Telnov Date: Mon, 16 Dec 2024 12:36:15 +0200 Subject: [PATCH] Fix functional test in Angular --- packages/survey-core/src/survey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/survey-core/src/survey.ts b/packages/survey-core/src/survey.ts index 7c29556975..6dc05ec1db 100644 --- a/packages/survey-core/src/survey.ts +++ b/packages/survey-core/src/survey.ts @@ -4412,6 +4412,7 @@ export class SurveyModel extends SurveyElementCore cPage.dispose(); this.pageContainerValue = undefined; }; + this.getAllQuestions().forEach(q => q.updateElementVisibility()); const singleName = "single-page"; const previewName = "preview-page"; let rootPage: PageModel = undefined; @@ -4445,7 +4446,6 @@ export class SurveyModel extends SurveyElementCore this.changeCurrentPageFromPreview = false; } } - this.getAllQuestions().forEach(q => q.updateElementVisibility()); this.pages.forEach(page => { if(page.hasShown) { page.updateElementCss(true);