From 9a04262998d0fda085f04e160976eb7458923456 Mon Sep 17 00:00:00 2001 From: Daniel Maly Date: Fri, 16 Jun 2017 08:42:37 +0200 Subject: [PATCH] Allowed blank values in custom mask --- lib/masks/custom.mask.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/masks/custom.mask.js b/lib/masks/custom.mask.js index fe7864d1..df04d7b7 100644 --- a/lib/masks/custom.mask.js +++ b/lib/masks/custom.mask.js @@ -28,6 +28,9 @@ export default class CustomMask extends BaseMask { } getValue(value, settings) { + if (value === '') { + return value; + } let { mask } = settings; let translation = this.mergeSettings(DEFAULT_TRANSLATION, settings.translation);