From 83351883aea3824144c99e6d4198dc5956557a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 27 Nov 2024 12:43:05 +0100 Subject: [PATCH] menu item select only correction --- packages/uui-menu-item/lib/uui-menu-item.element.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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`` - : ''} + ${this.loading ? html`` : ''}