Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ import { MultiSelectJustify } from './multi-select-justify';
(click)="this.onSelectionChange(item)"
class="multi-select-option"
>
<ht-checkbox class="checkbox" [checked]="this.isSelectedItem(item)"></ht-checkbox>
<ht-checkbox
class="checkbox"
(click)="blockCheckboxPropagation($event)"
[checked]="this.isSelectedItem(item)"
></ht-checkbox>
<ht-icon
class="icon"
*ngIf="item.icon"
Expand Down Expand Up @@ -210,6 +214,10 @@ export class MultiSelectComponent<V> implements AfterContentInit, OnChanges {
return this.selected !== undefined && this.selected.filter(value => value === item.value).length > 0;
}

public blockCheckboxPropagation(event: Event): void {
event.preventDefault();
}

private setSelection(selected: V[]): void {
this.selected = selected;
this.setTriggerLabel();
Expand Down