Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/question.ts
Original file line number Diff line number Diff line change
@@ -1549,8 +1549,7 @@ export class Question extends SurveyElement<Question>
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.

0 comments on commit a077429

Please sign in to comment.