Skip to content

Commit 52e6385

Browse files
committed
ignore click on a tags
1 parent 9475a7b commit 52e6385

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/uui-base/lib/mixins/SelectableMixin.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ export const SelectableMixin = <T extends Constructor<LitElement>>(
9595

9696
readonly #onClick = (e: Event) => {
9797
const composePath = e.composedPath();
98+
const target = composePath[0] as HTMLElement;
99+
100+
if (target.tagName === 'A') return;
101+
98102
const isSelectable =
99103
this._selectable || (this.deselectable && this.selected);
100104

0 commit comments

Comments
 (0)