Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit bd7654d

Browse files
committed
Merge pull request #1571 from Teegrounet/perf-ctrl-isActive
perf(uiSelectCtrl): change test in ctrl.isActive
2 parents 55e82e8 + d6c14d4 commit bd7654d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uiSelectController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ uis.controller('uiSelectCtrl',
306306
var itemIndex = ctrl.items.indexOf(itemScope[ctrl.itemProperty]);
307307
var isActive = itemIndex == ctrl.activeIndex;
308308

309-
if ( !isActive || ( itemIndex < 0 && ctrl.taggingLabel !== false ) ||( itemIndex < 0 && ctrl.taggingLabel === false) ) {
309+
if ( !isActive || itemIndex < 0 ) {
310310
return false;
311311
}
312312

0 commit comments

Comments
 (0)