Skip to content

Commit 168935f

Browse files
committed
Prevent propagating click event to parents (and thus closing the dropdown)
Fix for #5
1 parent 518a44b commit 168935f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dropdown/dropdown.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ export class MultiselectDropdown implements OnInit, OnChanges, DoCheck, ControlV
182182
}
183183

184184
setSelected(_event: Event, option: IMultiSelectOption) {
185+
event.stopPropagation();
185186
if (!this.model) {
186187
this.model = [];
187188
}

0 commit comments

Comments
 (0)