When adding a segmented button to an app and leaving the children empty, the app crashes (see sandbox).
I understand that rendering an empty segmented button does not make much sense, however I am trying to implement a usecase where I load the children dynamically. Thus, my app crashes when the children are not (yet) defined.
Affected Component
SegmentedButton
Expected Behaviour
I expect the SegmentedButton to not crash the app.
Bug Description
When adding a segmented button to an app and leaving the children empty, the app crashes (see sandbox). I understand that rendering an empty segmented button does not make much sense, however I am trying to implement a usecase where I load the children dynamically. Thus, my app crashes when the children are not (yet) defined.
Affected Component
SegmentedButton
Expected Behaviour
I expect the SegmentedButton to not crash the app.
Isolated Example
https://codesandbox.io/s/ui5-webcomponents-forked-gvvjcz?file=/index.html
Steps to Reproduce
Log Output, Stack Trace or Screenshots
No response
Priority
Medium
UI5 Web Components Version
1.18.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
SAP - WebcomponentForReact
Declaration