Skip to content

Commit 44e631a

Browse files
vladitasevilhan007
authored andcommitted
fix: Dialog does not break when there is no header text (#1146)
1 parent 4eac9f9 commit 44e631a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/main/src/Popup.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@ class Popup extends UI5Element {
445445
}
446446

447447
get hasHeader() {
448-
return !!(this.headerText.length || this.header.length);
448+
const hasHeaderText = this.headerText && this.headerText.length;
449+
return !!(hasHeaderText || this.header.length);
449450
}
450451

451452
get hasFooter() {

0 commit comments

Comments
 (0)