Skip to content

Commit 68f12f5

Browse files
committed
fix: resource-select stop propagation on item click
1 parent a4be0c5 commit 68f12f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/data/src/lib/resource-select/resource-select.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ export class ResourceSelectComponent extends SelectComponent<Resource> implement
123123
/** Is called when a selected item is clicked. Either outputs itemClick (if subscribed) or opens the edit pop if puttable. */
124124
clickItem(item, e) {
125125
if (this.itemClick.observers.length) {
126+
e.preventDefault();
127+
e.stopPropagation();
128+
e.stopImmediatePropagation();
126129
return this.itemClick.emit(item);
127130
}
128131
if (!this.solo && this.hasMethod('put')) {

0 commit comments

Comments
 (0)