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

Commit 7be4c73

Browse files
author
Brian Feister
committed
Re-introduce check to prevent unintentional "all active" return for not yet selected results list elements
1 parent 8fa93b7 commit 7be4c73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/select.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@
304304
};
305305

306306
ctrl.isActive = function(itemScope) {
307+
if ( typeof itemScope[ctrl.itemProperty] === 'undefined') {
308+
return false;
309+
}
307310
return ctrl.open && ctrl.items.indexOf(itemScope[ctrl.itemProperty]) === ctrl.activeIndex;
308311
};
309312

0 commit comments

Comments
 (0)