File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/uui-base/lib/mixins Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,13 +95,13 @@ export const SelectableMixin = <T extends Constructor<LitElement>>(
9595
9696 readonly #onClick = ( e : Event ) => {
9797 const composePath = e . composedPath ( ) ;
98- const isAnchorTag = composePath . some ( el => {
98+ const isActionTag = composePath . some ( el => {
9999 const element = el as HTMLElement ;
100- return element . tagName === 'A' ;
100+ return element . tagName === 'A' || element . tagName === 'BUTTON' ;
101101 } ) ;
102102
103- // never select when clicking on a link
104- if ( isAnchorTag ) return ;
103+ // never select when clicking on a link or button
104+ if ( isActionTag ) return ;
105105
106106 const isSelectable =
107107 this . _selectable || ( this . deselectable && this . selected ) ;
You can’t perform that action at this time.
0 commit comments