From 18f7554120ec3785c9cdd6e61bf02c21f46a1a7a Mon Sep 17 00:00:00 2001 From: Aleksey Novikov Date: Tue, 19 Mar 2024 15:54:00 +0300 Subject: [PATCH] #929 [Bug] Survey is scrolling to first question on page after visibleIf is triggered Fixes #929 --- src/react/panel-base.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/react/panel-base.tsx b/src/react/panel-base.tsx index 3f8f9ddb08..972ab93038 100644 --- a/src/react/panel-base.tsx +++ b/src/react/panel-base.tsx @@ -55,8 +55,8 @@ export class SurveyPanelBase extends SurveyElementBase { if ( !!prevProps.page && !!this.survey && - !!this.survey.currentPage && - prevProps.page.id === this.survey.currentPage.id + !!this.survey.activePage && + prevProps.page.id === this.survey.activePage.id ) return; this.doAfterRender();