Permalink
Browse files

feat(form-input): add step, min and max props for use with number type

  • Loading branch information...
katafractari authored and pi0 committed Apr 14, 2018
1 parent d05d6b6 commit 40ff38063d4cf99aa9f686322a48d729566ca037
Showing with 15 additions and 0 deletions.
  1. +15 −0 src/components/form-input/form-input.js
@@ -42,6 +42,9 @@ export default {
readonly: this.readonly || this.plaintext,
placeholder: this.placeholder,
autocomplete: this.autocomplete || null,
step: this.step || null,
min: this.min || null,
max: this.max || null,
'aria-required': this.required ? 'true' : null,
'aria-invalid': this.computedAriaInvalid
},
@@ -91,6 +94,18 @@ export default {
lazyFormatter: {
type: Boolean,
default: false
},
step: {
type: Number,
default: null
},
min: {
type: Number,
default: null
},
max: {
type: Number,
default: null
}
},
computed: {

0 comments on commit 40ff380

Please sign in to comment.