Skip to content

Commit e1d5344

Browse files
ruipensofcaballero
authored andcommitted
fix(autocomplete): change to type="search"
- Change inputs to `type="search"` - Change to `autocomplete="off"` as per HTML spec Closes angular-ui#991
1 parent 7170de8 commit e1d5344

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/bootstrap/select-multiple.tpl.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}">
22
<div>
33
<div class="ui-select-match"></div>
4-
<input type="text"
4+
<input type="search"
55
autocomplete="off"
66
autocorrect="off"
77
autocapitalize="off"
8-
spellcheck="false"
8+
spellcheck="false"
99
class="ui-select-search input-xs"
1010
placeholder="{{$selectMultiple.getPlaceholder()}}"
1111
ng-disabled="$select.disabled"

src/bootstrap/select.tpl.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}">
22
<div class="ui-select-match"></div>
3-
<input type="text" autocomplete="off" tabindex="-1"
3+
<input type="search" autocomplete="off" tabindex="-1"
44
aria-expanded="true"
55
aria-label="{{ $select.baseTitle }}"
66
aria-owns="ui-select-choices-{{ $select.generatedId }}"

src/select2/select-multiple.tpl.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<span class="ui-select-match"></span>
66
<li class="select2-search-field">
77
<input
8-
type="text"
8+
type="search"
99
autocomplete="off"
1010
autocorrect="off"
1111
autocapitalize="off"

src/selectize/select.tpl.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ng-class="{'focus': $select.open, 'disabled': $select.disabled, 'selectize-focus' : $select.focus}"
44
ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()">
55
<div class="ui-select-match"></div>
6-
<input type="text" autocomplete="off" tabindex="-1"
6+
<input type="search" autocomplete="off" tabindex="-1"
77
class="ui-select-search ui-select-toggle"
88
ng-class="{'ui-select-search-hidden':!$select.searchEnabled}"
99
ng-click="$select.toggle($event)"

0 commit comments

Comments
 (0)