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

Commit db7a1e7

Browse files
author
andy
committed
No dropdown is shown until minimum input length (3) is reached
1 parent 04b9752 commit db7a1e7

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

dist/select.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* ui-select
33
* http://github.com/angular-ui/ui-select
4-
* Version: 0.13.1 - 2015-09-30T05:39:26.659Z
4+
* Version: 0.13.1 - 2015-10-04T14:27:30.675Z
55
* License: MIT
66
*/
77

dist/select.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* ui-select
33
* http://github.com/angular-ui/ui-select
4-
* Version: 0.13.1 - 2015-09-30T05:39:26.655Z
4+
* Version: 0.13.1 - 2015-10-04T14:27:30.671Z
55
* License: MIT
66
*/
77

@@ -806,9 +806,12 @@ uis.directive('uiSelect',
806806

807807
//Multiple or Single depending if multiple attribute presence
808808
if (angular.isDefined(tAttrs.multiple))
809-
tElement.append("<ui-select-multiple/>").removeAttr('multiple');
809+
tElement.append('<ui-select-multiple/>').removeAttr('multiple');
810810
else
811-
tElement.append("<ui-select-single/>");
811+
tElement.append('<ui-select-single/>');
812+
813+
if (tAttrs.inputId)
814+
tElement.querySelectorAll('input.ui-select-search')[0].id = tAttrs.inputId;
812815

813816
return function(scope, element, attrs, ctrls, transcludeFn) {
814817

@@ -830,7 +833,7 @@ uis.directive('uiSelect',
830833

831834
$select.onSelectCallback = $parse(attrs.onSelect);
832835
$select.onRemoveCallback = $parse(attrs.onRemove);
833-
836+
834837
//Limit the number of selections allowed
835838
$select.limit = (angular.isDefined(attrs.limit)) ? parseInt(attrs.limit, 10) : undefined;
836839

@@ -843,8 +846,8 @@ uis.directive('uiSelect',
843846

844847
if(attrs.tabindex){
845848
attrs.$observe('tabindex', function(value) {
846-
$select.focusInput.attr("tabindex", value);
847-
element.removeAttr("tabindex");
849+
$select.focusInput.attr('tabindex', value);
850+
element.removeAttr('tabindex');
848851
});
849852
}
850853

dist/select.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/select.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)