From 5277167135db774f72a4ce83a6e6be43202a8ab6 Mon Sep 17 00:00:00 2001 From: Nikita Lobachev Date: Thu, 8 Feb 2018 15:14:25 +0300 Subject: [PATCH] Single line refactoring --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 44ba7f3..3162261 100644 --- a/src/index.js +++ b/src/index.js @@ -72,7 +72,7 @@ class InputElement extends React.Component { : this.value; if (!oldMaskOptions.mask && !this.hasValue) { - newValue = this.getInputDOMNode().value; + newValue = this.getInputValue(); } if (isMaskChanged || (this.maskOptions.mask && (newValue || showEmpty))) {