From 1d719f42e16e5a4f444ff0c41cf973157cff9307 Mon Sep 17 00:00:00 2001 From: yvan33 Date: Thu, 16 Nov 2017 14:11:47 -0800 Subject: [PATCH] Allow the placeholder character to be empty --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 5c6a55b..972cc3d 100644 --- a/src/index.js +++ b/src/index.js @@ -75,7 +75,7 @@ class MaskedInput extends React.Component { value: this.props.value, formatCharacters: this.props.formatCharacters } - if (this.props.placeholderChar) { + if (this.props.placeholderChar != null) { options.placeholderChar = this.props.placeholderChar } this.mask = new InputMask(options)