mirror of
https://github.com/tenrok/maska.git
synced 2026-06-05 16:42:28 +03:00
Fix bug with onMaska detail payload
This commit is contained in:
+5
-6
@@ -142,13 +142,12 @@ export class MaskInput {
|
||||
value = this.options.preProcess(value)
|
||||
}
|
||||
|
||||
value = mask.masked(value)
|
||||
const masked = mask.masked(value)
|
||||
const unmasked = mask.unmasked(mask.isEager() ? masked : value)
|
||||
const completed = mask.completed(value)
|
||||
const detail = { masked, unmasked, completed }
|
||||
|
||||
const detail = {
|
||||
masked: mask.masked(value),
|
||||
unmasked: mask.unmasked(value),
|
||||
completed: mask.completed(value)
|
||||
}
|
||||
value = masked
|
||||
|
||||
if (this.options.postProcess != null) {
|
||||
value = this.options.postProcess(value)
|
||||
|
||||
Reference in New Issue
Block a user