File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ describe('nav', () => {
200
200
expectLinks ( fixture , [ true , false ] ) ;
201
201
expectContents ( fixture , [ 'content 1' ] ) ;
202
202
expect ( activeIdChangeSpy ) . toHaveBeenCalledWith ( 1 ) ;
203
- expect ( navChangeSpy ) . toHaveBeenCalledWith ( { activeId : undefined , nextId : 1 , preventDefault : jasmine . any ( Function ) } ) ;
203
+ expect ( navChangeSpy ) . toHaveBeenCalledTimes ( 0 ) ;
204
204
} ) ;
205
205
206
206
it ( `should initially select nothing, if [activeId] provided is incorrect` , ( ) => {
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ export class NgbNav implements AfterContentInit {
201
201
if ( ! isDefined ( this . activeId ) ) {
202
202
const nextId = this . items . first ? this . items . first . id : null ;
203
203
if ( nextId ) {
204
- this . _updateActiveId ( nextId ) ;
204
+ this . _updateActiveId ( nextId , false ) ;
205
205
this . _cd . detectChanges ( ) ;
206
206
}
207
207
}
You can’t perform that action at this time.
0 commit comments