normalize autocomplete and spellcheck

This commit is contained in:
Sergio Crisostomo 2017-11-04 16:37:29 +01:00
parent 427dd34f0a
commit c17c5ad6cb
6 changed files with 28 additions and 5 deletions

View file

@ -9,6 +9,7 @@
<input
:id="elementId"
:autocomplete="autocomplete"
:spellcheck="spellcheck"
ref="input"
:type="type"
:class="inputClasses"
@ -34,6 +35,7 @@
v-else
:id="elementId"
:autocomplete="autocomplete"
:spellcheck="spellcheck"
ref="textarea"
:class="textareaClasses"
:style="textareaStyles"
@ -116,6 +118,10 @@
type: Boolean,
default: false
},
spellcheck: {
type: Boolean,
default: false
},
autocomplete: {
validator (value) {
return oneOf(value, ['on', 'off']);