Skip to content

Commit f235a84

Browse files
committed
Turn off autocorrect and autocapitilze
On e.g. mobile devices, it's more user friendly to turn off autocorrect in input fields. This patch adds the attributes autocorrect, autocapitilize and spellcheck. See also: http://davidwalsh.name/disable-autocorrect
1 parent fa8d260 commit f235a84

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

select2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ the specific language governing permissions and limitations under the Apache Lic
17021702
"<input class='select2-focusser select2-offscreen' type='text'/>",
17031703
"<div class='select2-drop select2-display-none'>" ,
17041704
" <div class='select2-search'>" ,
1705-
" <input type='text' autocomplete='off' class='select2-input'/>" ,
1705+
" <input type='text' autocomplete='off' autocorrect='off' autocapitilize='off' spellcheck='false' class='select2-input'/>" ,
17061706
" </div>" ,
17071707
" <ul class='select2-results'>" ,
17081708
" </ul>" ,
@@ -2194,7 +2194,7 @@ the specific language governing permissions and limitations under the Apache Lic
21942194
" <ul class='select2-choices'>",
21952195
//"<li class='select2-search-choice'><span>California</span><a href="javascript:void(0)" class="select2-search-choice-close"></a></li>" ,
21962196
" <li class='select2-search-field'>" ,
2197-
" <input type='text' autocomplete='off' class='select2-input'>" ,
2197+
" <input type='text' autocomplete='off' autocorrect='off' autocapitilize='off' spellcheck='false' class='select2-input'>" ,
21982198
" </li>" ,
21992199
"</ul>" ,
22002200
"<div class='select2-drop select2-drop-multi select2-display-none'>" ,

0 commit comments

Comments
 (0)