@@ -55,7 +55,6 @@ uis.directive('uiSelectChoices',
5555
5656
5757 $select . parseRepeatAttr ( attrs . repeat , groupByExp , groupFilterExp ) ; //Result ready at $select.parserResult
58- $select . refreshOnActive = scope . $eval ( attrs . refreshOnActive ) ;
5958 $select . disableChoiceExpression = attrs . uiDisableChoice ;
6059 $select . onHighlightCallback = attrs . onHighlight ;
6160 $select . dropdownPosition = attrs . position ? attrs . position . toLowerCase ( ) : uiSelectConfig . dropdownPosition ;
@@ -67,7 +66,7 @@ uis.directive('uiSelectChoices',
6766 scope . $watch ( '$select.search' , function ( newValue ) {
6867 if ( newValue && ! $select . open && $select . multiple ) $select . activate ( false , true ) ;
6968 $select . activeIndex = $select . tagging . isActivated ? - 1 : 0 ;
70- if ( ( ! attrs . minimumInputLength || $select . search . length >= attrs . minimumInputLength ) && ( ! $select . refreshOnActive || ( $select . refreshOnActive && $select . open ) ) ) {
69+ if ( ( ! attrs . minimumInputLength || $select . search . length >= attrs . minimumInputLength ) && $select . open ) {
7170 $select . refresh ( attrs . refresh ) ;
7271 } else {
7372 $select . items = [ ] ;
@@ -83,10 +82,7 @@ uis.directive('uiSelectChoices',
8382 scope . $watch ( '$select.open' , function ( open ) {
8483 if ( open ) {
8584 tElement . attr ( 'role' , 'listbox' ) ;
86- if ( ! angular . isUndefined ( $select . refreshOnActive ) ) {
87- //only add a watch when refreshonactive is set.
88- $select . refresh ( attrs . refresh ) ;
89- }
85+ $select . refresh ( attrs . refresh ) ;
9086 } else {
9187 tElement . removeAttr ( 'role' ) ;
9288 }
0 commit comments