@@ -2971,7 +2971,7 @@ describe('ui-select tests', function () {
2971
2971
triggerKeydown ( searchInput , Key . Down ) ;
2972
2972
expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 2 ) ;
2973
2973
triggerKeydown ( searchInput , Key . Up ) ;
2974
- expect ( el . scope ( ) . $select . activeIndex ) . toBe ( - 1 ) ;
2974
+ expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 0 ) ;
2975
2975
} ) ;
2976
2976
2977
2977
it ( 'should ignored disabled items going down' , function ( ) {
@@ -2992,7 +2992,7 @@ describe('ui-select tests', function () {
2992
2992
triggerKeydown ( searchInput , Key . Down ) ;
2993
2993
expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 2 ) ;
2994
2994
triggerKeydown ( searchInput , Key . Up ) ;
2995
- expect ( el . scope ( ) . $select . activeIndex ) . toBe ( - 1 ) ;
2995
+ expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 0 ) ;
2996
2996
} ) ;
2997
2997
2998
2998
it ( 'should ignore disabled items, going down with remove-selected on false' , function ( ) {
@@ -3548,7 +3548,7 @@ describe('ui-select tests', function () {
3548
3548
triggerKeydown ( searchInput , Key . Down ) ;
3549
3549
expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 2 ) ;
3550
3550
triggerKeydown ( searchInput , Key . Up ) ;
3551
- expect ( el . scope ( ) . $select . activeIndex ) . toBe ( - 1 ) ;
3551
+ expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 0 ) ;
3552
3552
} ) ;
3553
3553
3554
3554
it ( 'should ignored disabled items in the down direction with tagging on' , function ( ) {
0 commit comments