Skip to content

Commit

Permalink
Merge pull request #28 from Symphony9/master
Browse files Browse the repository at this point in the history
Allowed blank values in custom mask
  • Loading branch information
Ben-hur Ott authored Jun 17, 2017
2 parents 31eef08 + 9a04262 commit 4f88b7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/masks/custom.mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4f88b7b

Please sign in to comment.