We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecccc86 commit f458819Copy full SHA for f458819
packages/fiori/src/SideNavigation.ts
@@ -534,9 +534,11 @@ class SideNavigation extends UI5Element {
534
535
if (selectedItem) {
536
const selectedItemDomRef = selectedItem.getDomRef();
537
- const { marginTop, marginBottom } = window.getComputedStyle(selectedItemDomRef!);
538
539
- itemsHeight += selectedItemDomRef!.offsetHeight + parseFloat(marginTop) + parseFloat(marginBottom);
+ if (selectedItemDomRef) {
+ const { marginTop, marginBottom } = window.getComputedStyle(selectedItemDomRef);
540
+ itemsHeight += selectedItemDomRef.offsetHeight + parseFloat(marginTop) + parseFloat(marginBottom);
541
+ }
542
}
543
544
overflowItems.forEach(item => {
0 commit comments