diff --git a/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.tsx b/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.tsx index abf898fc15..7b26549d39 100644 --- a/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.tsx +++ b/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.tsx @@ -71,7 +71,7 @@ export class TelekomNavItem { el.matches('a, button') ); const parentRole = this.hostElement.parentElement?.getAttribute('role'); - if (parentRole === 'menu') { + if (child && parentRole === 'menu') { child.setAttribute('role', 'menuitem'); } }