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

Commit 48cf1ba

Browse files
ruipensowesleycho
authored andcommittedApr 6, 2016
fix(autocomplete): change to type="search"
- Change inputs to `type="search"` - Change to `autocomplete="off"` as per HTML spec Closes #991
1 parent 4b1ed47 commit 48cf1ba

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
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/select2/select.tpl.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active"
88
ng-class="{'select2-display-none': !$select.open}">
99
<div class="select2-search" ng-show="$select.searchEnabled">
10-
<input type="text" autocomplete="off" autocorrect="false" autocapitalize="off" spellcheck="false"
10+
<input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
1111
role="combobox"
1212
aria-expanded="true"
1313
aria-owns="ui-select-choices-{{ $select.generatedId }}"

‎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-click="$select.toggle($event)"
99
placeholder="{{$select.placeholder}}"

0 commit comments

Comments
 (0)
This repository has been archived.