@@ -70,9 +70,9 @@ import { Observable } from "rxjs";
7070 <span class="bx--tag__label">{{ pills.length }}</span>
7171 <button
7272 type="button"
73- (click)="clearSelected()"
73+ (click)="clearSelected($event )"
7474 (blur)="onBlur()"
75- (keydown.enter)="clearSelected()"
75+ (keydown.enter)="clearSelected($event )"
7676 class="bx--tag__close-icon"
7777 tabindex="0"
7878 [title]="clearSelectionsTitle"
@@ -402,7 +402,7 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
402402 /** Emits the search string from the input */
403403 @Output ( ) search = new EventEmitter < string > ( ) ;
404404 /** Emits an event when the clear button is clicked. */
405- @Output ( ) clear = new EventEmitter ( ) ;
405+ @Output ( ) clear = new EventEmitter < Event > ( ) ;
406406 /** ContentChild reference to the instantiated dropdown list */
407407 // @ts -ignore
408408 @ContentChild ( AbstractDropdownView , { static : true } ) view : AbstractDropdownView ;
@@ -664,7 +664,7 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
664664 this . checkForReorder ( ) ;
665665 }
666666
667- public clearSelected ( ) {
667+ public clearSelected ( event ) {
668668 this . items = this . items . map ( item => {
669669 if ( ! item . disabled ) {
670670 item . selected = false ;
@@ -678,7 +678,7 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
678678 const selected = this . view . getSelected ( ) ;
679679 this . propagateChangeCallback ( selected ) ;
680680 this . selected . emit ( selected as any ) ;
681- this . clear . emit ( ) ;
681+ this . clear . emit ( event ) ;
682682 }
683683
684684 /**
@@ -777,7 +777,7 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
777777 event . preventDefault ( ) ;
778778
779779 if ( this . type === "single" ) { // don't want to clear selected or close if multi
780- this . clearSelected ( ) ;
780+ this . clearSelected ( event ) ;
781781 this . closeDropdown ( ) ;
782782 }
783783
0 commit comments