Merge pull request #631 from dod-ccpo/portfolio-name-validation-fix-2
Add validation for textInput on blur
This commit is contained in:
commit
9a326b58b9
@ -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
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user