From a07742941627eea82848c16ebb6773848aaf37d5 Mon Sep 17 00:00:00 2001 From: marvin-wtt <31454580+marvin-wtt@users.noreply.github.com> Date: Mon, 18 Dec 2023 04:06:15 +0100 Subject: [PATCH] Fix: Use valueName getter instead --- src/question.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/question.ts b/src/question.ts index b2692a00c6..ba6b73c043 100644 --- a/src/question.ts +++ b/src/question.ts @@ -1549,8 +1549,7 @@ export class Question extends SurveyElement if (this.isVisibleInSurvey) return false; if (!!this.page && this.page.isStartPage) return false; if (!this.survey) return true; - const valueName = this.valueName ?? this.name; - return !this.survey.hasVisibleQuestionByValueName(valueName); + return !this.survey.hasVisibleQuestionByValueName(this.getValueName()); } /** * Returns `true` if a parent element (page or panel) is visible.