From e1016de7b72d6ef7d2d4c2aa58dff7016ce3e895 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 24 Jul 2023 16:41:57 +0300 Subject: [PATCH] React: survey.focusQuestion doesn't work for a question on another page if pages names are not unique fix #6555 (#6576) --- src/react/panel-base.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react/panel-base.tsx b/src/react/panel-base.tsx index 666d8f7048..22a3e75fbf 100644 --- a/src/react/panel-base.tsx +++ b/src/react/panel-base.tsx @@ -56,7 +56,7 @@ export class SurveyPanelBase extends SurveyElementBase { !!prevProps.page && !!this.survey && !!this.survey.currentPage && - prevProps.page.name === this.survey.currentPage.name + prevProps.page.id === this.survey.currentPage.id ) return; this.doAfterRender();