diff --git a/packages/uui-menu-item/lib/uui-menu-item.element.ts b/packages/uui-menu-item/lib/uui-menu-item.element.ts index 184ec37e0..5c39465b5 100644 --- a/packages/uui-menu-item/lib/uui-menu-item.element.ts +++ b/packages/uui-menu-item/lib/uui-menu-item.element.ts @@ -226,12 +226,12 @@ export class UUIMenuItemElement extends SelectOnlyMixin( ?open=${this.showChildren}> ` : ''} - ${this.href ? this._renderLabelAsAnchor() : this._renderLabelAsButton()} + ${this.href && !this.selectOnly + ? this._renderLabelAsAnchor() + : this._renderLabelAsButton()}
- ${this.selectOnly === false - ? html`