We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d67a9 commit 5c631d3Copy full SHA for 5c631d3
packages/uui-base/lib/mixins/SelectableMixin.ts
@@ -95,6 +95,15 @@ export const SelectableMixin = <T extends Constructor<LitElement>>(
95
96
readonly #onClick = (e: Event) => {
97
const composePath = e.composedPath();
98
+
99
+ if (
100
+ (this._selectable || (this.deselectable && this.selected)) &&
101
+ this.selectableTarget === this
102
+ ) {
103
+ this.#toggleSelect();
104
+ return;
105
+ }
106
107
if (
108
(this._selectable || (this.deselectable && this.selected)) &&
109
composePath.indexOf(this.selectableTarget) === 0
0 commit comments