Skip to content

Commit 494bc94

Browse files
Michiel Thalenmgcrea
authored andcommitted
fix(select): test with angular.equals
1 parent 0450ae3 commit 494bc94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select/select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ angular.module('mgcrea.ngStrap.select', ['mgcrea.ngStrap.tooltip', 'mgcrea.ngStr
170170
var l = scope.$matches.length, i = l;
171171
if(!l) return;
172172
for(i = l; i--;) {
173-
if(scope.$matches[i].value === value) break;
173+
if (angular.equals(scope.$matches[i].value, value)) break;
174174
}
175175
if(i < 0) return;
176176
return i;

0 commit comments

Comments
 (0)