@@ -39,25 +39,26 @@ uis.directive('uiSelectChoices',
3939
4040 choices . attr ( 'ng-repeat' , parserResult . repeatExpression ( groupByExp ) )
4141 . attr ( 'ng-if' , '$select.open' ) ; //Prevent unnecessary watches when dropdown is closed
42-
42+
4343
4444 var rowsInner = tElement . querySelectorAll ( '.ui-select-choices-row-inner' ) ;
4545 if ( rowsInner . length !== 1 ) {
4646 throw uiSelectMinErr ( 'rows' , "Expected 1 .ui-select-choices-row-inner but got '{0}'." , rowsInner . length ) ;
4747 }
4848 rowsInner . attr ( 'uis-transclude-append' , '' ) ; //Adding uisTranscludeAppend directive to row element after choices element has ngRepeat
4949
50- // If IE8 then need to target rowsInner to apply the ng-click attr as choices will not capture the event.
50+ // If IE8 then need to target rowsInner to apply the ng-click attr as choices will not capture the event.
5151 var clickTarget = $window . document . addEventListener ? choices : rowsInner ;
5252 clickTarget . attr ( 'ng-click' , '$select.select(' + parserResult . itemName + ',$select.skipFocusser,$event)' ) ;
53-
53+
5454 return function link ( scope , element , attrs , $select ) {
5555
56-
56+
5757 $select . parseRepeatAttr ( attrs . repeat , groupByExp , groupFilterExp ) ; //Result ready at $select.parserResult
5858 $select . disableChoiceExpression = attrs . uiDisableChoice ;
5959 $select . onHighlightCallback = attrs . onHighlight ;
60- $select . dropdownPosition = attrs . position ? attrs . position . toLowerCase ( ) : uiSelectConfig . dropdownPosition ;
60+ $select . minimumInputLength = parseInt ( attrs . minimumInputLength ) || 0 ;
61+ $select . dropdownPosition = attrs . position ? attrs . position . toLowerCase ( ) : uiSelectConfig . dropdownPosition ;
6162
6263 scope . $watch ( '$select.search' , function ( newValue ) {
6364 if ( newValue && ! $select . open && $select . multiple ) $select . activate ( false , true ) ;
0 commit comments