Skip to content

Commit 668dc33

Browse files
committed
Fixed id on input
Added the `input-id` attribute to the `ui-select` directive to add an id to the input element so that external label elements can be attached to it.
1 parent 213f956 commit 668dc33

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
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.7.1 - 2014-09-26T16:01:00.827Z
4+
* Version: 0.7.1 - 2014-09-29T16:11:55.314Z
55
* License: MIT
66
*/
77

dist/select.js

Lines changed: 4 additions & 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.7.1 - 2014-09-26T16:01:00.824Z
4+
* Version: 0.7.1 - 2014-09-29T16:11:55.311Z
55
* License: MIT
66
*/
77

@@ -580,6 +580,9 @@
580580
var ngModel = ctrls[1];
581581

582582
var searchInput = element.querySelectorAll('input.ui-select-search');
583+
if (attrs.inputId) {
584+
searchInput[0].id = attrs.inputId;
585+
}
583586

584587
$select.multiple = angular.isDefined(attrs.multiple);
585588

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.

0 commit comments

Comments
 (0)