2
0
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:
Alexander Shabunevich
2023-01-29 16:27:58 +03:00
parent e30084d232
commit ea47223566
2 changed files with 171 additions and 6 deletions
+5 -6
View File
@@ -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)