Skip to content

Commit

Permalink
Fix showing page description in designer
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Sep 11, 2023
1 parent ffe7532 commit 6972949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ export class PanelModelBase extends SurveyElement<Question>
protected canShowTitle(): boolean { return true; }
@property({ defaultValue: true }) showDescription: boolean;
get _showDescription(): boolean {
return this.survey && (<any>this.survey).showPageTitles && this.hasDescription ||
(this.showDescription && this.isDesignMode &&
return this.survey && (<any>this.survey).showPageTitles && this.hasDescription && !this.isDesignMode ||
(this.showDescription && this.isDesignMode && this.showTitle &&
settings.designMode.showEmptyTitles &&
settings.designMode.showEmptyDescriptions);
}
Expand Down

0 comments on commit 6972949

Please sign in to comment.