Skip to content

Commit

Permalink
fix: Dialog does not break when there is no header text (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladitasev authored and ilhan007 committed Jan 21, 2020
1 parent 4eac9f9 commit 44e631a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/main/src/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,8 @@ class Popup extends UI5Element {
}

get hasHeader() {
return !!(this.headerText.length || this.header.length);
const hasHeaderText = this.headerText && this.headerText.length;
return !!(hasHeaderText || this.header.length);
}

get hasFooter() {
Expand Down

0 comments on commit 44e631a

Please sign in to comment.