File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
projects/igniteui-angular/src/lib/directives/button Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations';
1010const BUTTON_COMFORTABLE = 'igx-button' ;
1111
1212describe ( 'IgxButton' , ( ) => {
13- configureTestSuite ( ) ;
13+ configureTestSuite ( { checkLeaks : true } ) ;
1414
1515 const baseClass = BUTTON_COMFORTABLE ;
1616 const classes = {
Original file line number Diff line number Diff line change @@ -128,7 +128,8 @@ export class IgxButtonDirective extends IgxButtonBaseDirective implements AfterC
128128 }
129129
130130 public ngAfterContentInit ( ) {
131- this . nativeElement . addEventListener ( 'click' , this . emitSelected . bind ( this ) ) ;
131+ this . emitSelected = this . emitSelected . bind ( this ) ;
132+ this . nativeElement . addEventListener ( 'click' , this . emitSelected ) ;
132133 }
133134
134135 public ngOnDestroy ( ) : void {
You can’t perform that action at this time.
0 commit comments