@@ -55,7 +55,6 @@ uis.directive('uiSelectChoices',
55
55
56
56
57
57
$select . parseRepeatAttr ( attrs . repeat , groupByExp , groupFilterExp ) ; //Result ready at $select.parserResult
58
- $select . refreshOnActive = scope . $eval ( attrs . refreshOnActive ) ;
59
58
$select . disableChoiceExpression = attrs . uiDisableChoice ;
60
59
$select . onHighlightCallback = attrs . onHighlight ;
61
60
$select . dropdownPosition = attrs . position ? attrs . position . toLowerCase ( ) : uiSelectConfig . dropdownPosition ;
@@ -67,7 +66,7 @@ uis.directive('uiSelectChoices',
67
66
scope . $watch ( '$select.search' , function ( newValue ) {
68
67
if ( newValue && ! $select . open && $select . multiple ) $select . activate ( false , true ) ;
69
68
$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 ) {
71
70
$select . refresh ( attrs . refresh ) ;
72
71
} else {
73
72
$select . items = [ ] ;
@@ -83,10 +82,7 @@ uis.directive('uiSelectChoices',
83
82
scope . $watch ( '$select.open' , function ( open ) {
84
83
if ( open ) {
85
84
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 ) ;
90
86
} else {
91
87
tElement . removeAttr ( 'role' ) ;
92
88
}
0 commit comments