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 }) {
|
_checkIfValid: function({ value, invalidate = false }) {
|
||||||
// Validate the value
|
// Validate the value
|
||||||
|
@ -64,6 +64,7 @@
|
|||||||
|
|
||||||
<masked-input
|
<masked-input
|
||||||
v-on:input='onInput'
|
v-on:input='onInput'
|
||||||
|
v-on:blur='onBlur'
|
||||||
v-on:change='onChange'
|
v-on:change='onChange'
|
||||||
v-bind:value='value'
|
v-bind:value='value'
|
||||||
v-bind:mask='mask'
|
v-bind:mask='mask'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user