@@ -201,7 +201,7 @@ describe('ngb-typeahead', () => {
201
201
} ) ;
202
202
} ) ) ) ;
203
203
204
- it ( 'should select the result on mousedown , close window and fill the input' ,
204
+ it ( 'should select the result on click , close window and fill the input' ,
205
205
async ( inject ( [ TestComponentBuilder ] , ( tcb ) => {
206
206
const html = `<input type="text" [(ngModel)]="model" [ngbTypeahead]="find"/>` ;
207
207
@@ -214,7 +214,7 @@ describe('ngb-typeahead', () => {
214
214
fixture . detectChanges ( ) ;
215
215
expectWindowResults ( compiled , [ '+one' , 'one more' ] ) ;
216
216
217
- getWindowLinks ( fixture . debugElement ) [ 0 ] . triggerEventHandler ( 'mousedown ' , { } ) ;
217
+ getWindowLinks ( fixture . debugElement ) [ 0 ] . triggerEventHandler ( 'click ' , { } ) ;
218
218
fixture . detectChanges ( ) ;
219
219
expect ( getWindow ( compiled ) ) . toBeNull ( ) ;
220
220
expectInputValue ( compiled , 'one' ) ;
@@ -226,7 +226,7 @@ describe('ngb-typeahead', () => {
226
226
expectWindowResults ( compiled , [ '+one' , 'one more' ] ) ;
227
227
expectInputValue ( compiled , 'o' ) ;
228
228
229
- getWindowLinks ( fixture . debugElement ) [ 0 ] . triggerEventHandler ( 'mousedown ' , { } ) ;
229
+ getWindowLinks ( fixture . debugElement ) [ 0 ] . triggerEventHandler ( 'click ' , { } ) ;
230
230
fixture . detectChanges ( ) ;
231
231
expect ( getWindow ( compiled ) ) . toBeNull ( ) ;
232
232
expectInputValue ( compiled , 'one' ) ;
0 commit comments