Skip to content

Commit

Permalink
Allowed blank values in custom mask
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMaly authored Jun 16, 2017
1 parent 31eef08 commit 9a04262
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 9a04262

Please sign in to comment.