We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2356cd0 commit c44d9aaCopy full SHA for c44d9aa
packages/main/src/SegmentedButton.js
@@ -212,7 +212,7 @@ class SegmentedButton extends UI5Element {
212
}
213
214
async _handleResize() {
215
- const buttonsHaveWidth = this.widths.some(button => button.offsetWidth > 2); // 2 are the pixel's added for rounding & IE
+ const buttonsHaveWidth = this.widths && this.widths.some(button => button.offsetWidth > 2); // 2 are the pixel's added for rounding & IE
216
if (!buttonsHaveWidth) {
217
await this.measureButtonsWidth();
218
0 commit comments