Skip to content

Commit 8335188

Browse files
committed
menu item select only correction
1 parent a7290ee commit 8335188

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/uui-menu-item/lib/uui-menu-item.element.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,12 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
226226
?open=${this.showChildren}></uui-symbol-expand>
227227
</button>`
228228
: ''}
229-
${this.href ? this._renderLabelAsAnchor() : this._renderLabelAsButton()}
229+
${this.href && !this.selectOnly
230+
? this._renderLabelAsAnchor()
231+
: this._renderLabelAsButton()}
230232
231233
<div id="label-button-background"></div>
232-
${this.selectOnly === false
233-
? html`<slot id="actions-container" name="actions"></slot>`
234-
: ''}
234+
<slot id="actions-container" name="actions"></slot>
235235
${this.loading
236236
? html`<uui-loader-bar id="loader"></uui-loader-bar>`
237237
: ''}

0 commit comments

Comments
 (0)