Skip to content

Commit ce245bb

Browse files
author
George Reith
committed
Added input-id attribute to ui-select directive to allow setting of the input's id to create labels that will focus the select
1 parent 8d15d3e commit ce245bb

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-29T15:55:54.989Z
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-29T15:55:54.985Z
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)