diff --git a/packages/uui-base/lib/mixins/SelectableMixin.ts b/packages/uui-base/lib/mixins/SelectableMixin.ts index 70871a469..bdbb55bcd 100644 --- a/packages/uui-base/lib/mixins/SelectableMixin.ts +++ b/packages/uui-base/lib/mixins/SelectableMixin.ts @@ -95,13 +95,13 @@ export const SelectableMixin = >( readonly #onClick = (e: Event) => { const composePath = e.composedPath(); - const isAnchorTag = composePath.some(el => { + const isActionTag = composePath.some(el => { const element = el as HTMLElement; - return element.tagName === 'A'; + return element.tagName === 'A' || element.tagName === 'BUTTON'; }); - // never select when clicking on a link - if (isAnchorTag) return; + // never select when clicking on a link or button + if (isActionTag) return; const isSelectable = this._selectable || (this.deselectable && this.selected);