Turn of spellcheck, autocomplete and autocorrect from input

This commit is contained in:
Josh Johnson 2016-08-03 09:23:39 +01:00
parent b7484612eb
commit 6d9656bed2
3 changed files with 3 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -1408,7 +1408,7 @@ export class Choices {
},
input: () => {
return strToEl(`<input type="text" class="${ classNames.input } ${ classNames.inputCloned }" autocomplete="off" aria-autocomplete="list" role="textbox">`);
return strToEl(`<input type="text" class="${ classNames.input } ${ classNames.inputCloned }" autocomplete="off" autocapitalize="off" spellcheck="false" role="textbox">`);
},
dropdown: () => {
return strToEl(`<div class="${ classNames.list } ${ classNames.listDropdown }" aria-expanded="false"></div>`);

View file

@ -5,7 +5,6 @@
"main": "./assets/scripts/dist/choices.min.js",
"scripts": {
"start": "node server.js",
"lint": "eslint ./assets/scripts/src",
"css:watch": "nodemon -e scss -x \"npm run css:build\"",
"css:build": "npm run css:sass -s && npm run css:prefix -s && npm run css:min -s",
"css:sass": "node-sass --include-path scss assets/styles/scss/base.scss assets/styles/css/base.css && node-sass --include-path scss assets/styles/scss/choices.scss assets/styles/css/choices.css",
@ -28,13 +27,11 @@
"devDependencies": {
"autoprefixer": "^6.3.3",
"babel-core": "^6.7.2",
"babel-eslint": "^5.0.0",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"babel-preset-stage-0": "^6.5.0",
"csso": "^1.7.0",
"es6-promise": "^3.2.1",
"eslint": "^2.4.0",
"fuse.js": "^2.2.0",
"jasmine-core": "^2.4.1",
"karma": "^1.1.0",
@ -48,7 +45,6 @@
"nodemon": "^1.9.1",
"opn-cli": "^3.1.0",
"postcss-cli": "^2.5.1",
"sifter": "^0.4.5",
"webpack": "^1.12.14",
"webpack-dev-server": "^1.14.1",
"whatwg-fetch": "^1.0.0"