Skip to content

Commit 364482b

Browse files
committed
fix: removeItem still activated entry-select + entry-select demo
1 parent 701d24b commit 364482b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

demo/app/entry-select/entry-select-demo.component.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ <h2 class="mega">ec-entry-select</h2>
77
<strong>without model</strong>
88
<ec-entry-select></ec-entry-select>
99

10-
<!--
1110
<hr>
1211

1312
<strong>default usage</strong>
@@ -23,10 +22,10 @@ <h2 class="mega">ec-entry-select</h2>
2322
<strong>selected IDs:</strong>
2423
<pre>{{entrySelect.selection?.getValue() | json}}</pre>
2524
</div>
26-
<strong>solo with disableSelect</strong>
27-
<ec-entry-select model="muffin" [solo]="true" #soloEntry [config]="{disableSelect:true}"></ec-entry-select>
25+
<strong>with disableSelect</strong>
26+
<ec-entry-select model="muffin" [config]="{disableSelect:true}"></ec-entry-select>
2827

29-
<pre>{{soloEntry.selection?.getValue()}}</pre>
28+
<!-- <pre>{{soloEntry.selection?.getValue()}}</pre> -->
3029

3130
<strong>solo with disableListPop</strong>
3231
<ec-entry-select model="muffin" [solo]="true" [config]="{disableListPop:true}"></ec-entry-select>
@@ -40,4 +39,4 @@ <h2 class="mega">ec-entry-select</h2>
4039
<strong>solo with deleteOnRemove</strong>
4140
<ec-entry-select model="muffin" [solo]="true" [config]="{deleteOnRemove:true,safeDelete:false}"></ec-entry-select>
4241

43-
<ec-notifications></ec-notifications>-->
42+
<ec-notifications></ec-notifications>

packages/data/src/entry-select/entry-select.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ export class EntrySelectComponent extends SelectComponent<EntryResource> impleme
9595
item.getBody().delete();
9696
}
9797
}
98+
if (e) {
99+
e.preventDefault();
100+
e.stopPropagation();
101+
}
98102
}
99103

100104
activate($event) {

0 commit comments

Comments
 (0)