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
This commit is contained in:
parent
fa8d260114
commit
f235a84aa8
@ -1702,7 +1702,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
"<input class='select2-focusser select2-offscreen' type='text'/>",
|
"<input class='select2-focusser select2-offscreen' type='text'/>",
|
||||||
"<div class='select2-drop select2-display-none'>" ,
|
"<div class='select2-drop select2-display-none'>" ,
|
||||||
" <div class='select2-search'>" ,
|
" <div class='select2-search'>" ,
|
||||||
" <input type='text' autocomplete='off' class='select2-input'/>" ,
|
" <input type='text' autocomplete='off' autocorrect='off' autocapitilize='off' spellcheck='false' class='select2-input'/>" ,
|
||||||
" </div>" ,
|
" </div>" ,
|
||||||
" <ul class='select2-results'>" ,
|
" <ul class='select2-results'>" ,
|
||||||
" </ul>" ,
|
" </ul>" ,
|
||||||
@ -2194,7 +2194,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
" <ul class='select2-choices'>",
|
" <ul class='select2-choices'>",
|
||||||
//"<li class='select2-search-choice'><span>California</span><a href="javascript:void(0)" class="select2-search-choice-close"></a></li>" ,
|
//"<li class='select2-search-choice'><span>California</span><a href="javascript:void(0)" class="select2-search-choice-close"></a></li>" ,
|
||||||
" <li class='select2-search-field'>" ,
|
" <li class='select2-search-field'>" ,
|
||||||
" <input type='text' autocomplete='off' class='select2-input'>" ,
|
" <input type='text' autocomplete='off' autocorrect='off' autocapitilize='off' spellcheck='false' class='select2-input'>" ,
|
||||||
" </li>" ,
|
" </li>" ,
|
||||||
"</ul>" ,
|
"</ul>" ,
|
||||||
"<div class='select2-drop select2-drop-multi select2-display-none'>" ,
|
"<div class='select2-drop select2-drop-multi select2-display-none'>" ,
|
||||||
|
Loading…
Reference in New Issue
Block a user