fix mount masking behavior for email fields
This commit is contained in:
parent
06a2d83dbd
commit
4832ecd419
@ -43,8 +43,12 @@ export default {
|
|||||||
if (this.value) {
|
if (this.value) {
|
||||||
this._checkIfValid({ value: this.value, invalidate: true })
|
this._checkIfValid({ value: this.value, invalidate: true })
|
||||||
|
|
||||||
if (this.mask) {
|
if (this.mask && this.validation !== 'email') {
|
||||||
this.value = conformToMask(this.value, this.mask).conformedValue
|
const mask = typeof this.mask.mask !== 'function'
|
||||||
|
? this.mask
|
||||||
|
: mask.mask(this.value).filter((val) => val !== '[]')
|
||||||
|
|
||||||
|
this.value = conformToMask(this.value, mask).conformedValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user