This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ describe('typeahead tests', function () {
70
70
this . message = function ( ) {
71
71
return 'Expected "' + angular . mock . dump ( typeaheadEl ) + '" to be closed.' ;
72
72
} ;
73
- return typeaheadEl . css ( 'display' ) === 'none' && findMatches ( this . actual ) . length === 0 ;
73
+ return typeaheadEl . length === 0 ;
74
74
75
75
} , toBeOpenWithActive : function ( noOfMatches , activeIdx ) {
76
76
@@ -80,7 +80,7 @@ describe('typeahead tests', function () {
80
80
this . message = function ( ) {
81
81
return 'Expected "' + this . actual + '" to be opened.' ;
82
82
} ;
83
- return typeaheadEl . css ( 'display' ) === 'block' && liEls . length === noOfMatches && $ ( liEls [ activeIdx ] ) . hasClass ( 'active' ) ;
83
+ return typeaheadEl . length === 1 && liEls . length === noOfMatches && $ ( liEls [ activeIdx ] ) . hasClass ( 'active' ) ;
84
84
}
85
85
} ) ;
86
86
} ) ;
Original file line number Diff line number Diff line change 1
- < ul class ="dropdown-menu " ng-style =" {display: isOpen()&&'block' || 'none', top: position.top+'px', left: position.left+'px'} ">
2
- < li ng-repeat ="match in matches " ng-class ="{active: isActive($index) } " ng-mouseenter ="selectActive($index) " ng-click ="selectMatch($index) ">
1
+ < ul class ="dropdown-menu " ng-if =" isOpen() " ng-style =" { top: position.top+'px', left: position.left+'px'}" style =" display: block; ">
2
+ < li ng-repeat ="match in matches track by $index " ng-class ="{active: isActive($index) } " ng-mouseenter ="selectActive($index) " ng-click ="selectMatch($index) ">
3
3
< div typeahead-match index ="$index " match ="match " query ="query " template-url ="templateUrl "> </ div >
4
4
</ li >
5
5
</ ul >
You can’t perform that action at this time.
0 commit comments