Skip to content

Commit

Permalink
fix(withWebComponent): filter out empty strings
Browse files Browse the repository at this point in the history
Empty strings, e.g. from default props might lead to unintended behavior, e.g. showing a popover header although it was not defined.
  • Loading branch information
MarcusNotheis committed May 3, 2020
1 parent b21b1f0 commit d3a9f2f
Show file tree
Hide file tree
Showing 52 changed files with 74 additions and 1,011 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
exports[`ActionSheet Render without Crashing 1`] = `
<ui5-responsive-popover
class="ActionSheet-actionSheet-0 myCustomClass"
header-text=""
horizontal-align="Center"
initial-focus=""
placement-type="Right"
vertical-align="Center"
>
Expand All @@ -19,14 +17,12 @@ exports[`ActionSheet Render without Crashing 1`] = `
<ui5-button
data-is-action-sheet-button=""
design="Transparent"
icon=""
>
Reject
</ui5-button>
<ui5-button
data-is-action-sheet-button=""
design="Transparent"
icon=""
>
This is my super long text!
</ui5-button>
Expand All @@ -36,16 +32,13 @@ exports[`ActionSheet Render without Crashing 1`] = `
exports[`ActionSheet does not crash with other component 1`] = `
<ui5-responsive-popover
class="ActionSheet-actionSheet-0"
header-text=""
horizontal-align="Center"
initial-focus=""
placement-type="Right"
vertical-align="Center"
>
<ui5-label
data-is-action-sheet-button=""
design="Transparent"
for=""
>
I should not crash
</ui5-label>
Expand Down
Loading

0 comments on commit d3a9f2f

Please sign in to comment.