Merge pull request #631 from dod-ccpo/portfolio-name-validation-fix-2

Add validation for textInput on blur
This commit is contained in:
leigh-mil 2019-02-12 17:36:06 -05:00 committed by GitHub
commit 9a326b58b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -84,6 +84,10 @@ export default {
}
},
onBlur: function(e) {
this._checkIfValid({ value: e.target.value, invalidate: true })
},
//
_checkIfValid: function({ value, invalidate = false }) {
// Validate the value

View File

@ -64,6 +64,7 @@
<masked-input
v-on:input='onInput'
v-on:blur='onBlur'
v-on:change='onChange'
v-bind:value='value'
v-bind:mask='mask'