Merge pull request #643 from dod-ccpo/text-input-validation-fix

Trim extra whitespace on blur
This commit is contained in:
leigh-mil 2019-02-14 14:48:20 -05:00 committed by GitHub
commit 505348ea59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,8 @@ export default {
},
onBlur: function(e) {
this._checkIfValid({ value: e.target.value, invalidate: true })
this._checkIfValid({ value: e.target.value.trim(), invalidate: true })
this.value = e.target.value.trim()
},
//