diff --git a/components/select/select.ts b/components/select/select.ts index 9ec876cd..e54e6996 100755 --- a/components/select/select.ts +++ b/components/select/select.ts @@ -137,7 +137,7 @@ let styles = ` [innerHTML]="sanitize(active[0].text)"> - + @@ -199,7 +199,7 @@ let styles = ` [ngClass]="{'btn-default': true}"> × + (click)="removeClick(a, $event)">× @@ -525,6 +525,11 @@ export class SelectComponent implements OnInit, ControlValueAccessor { return this.activeOption.text === value.text; } + protected removeClick(value: SelectItem, event: any): void { + event.stopPropagation(); + this.remove(value); + } + private focusToInput(value:string = ''):void { setTimeout(() => { let el = this.element.nativeElement.querySelector('div.ui-select-container > input');