Skip to content

Commit

Permalink
fix #173: default value for money mask
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-hur Santos Ott committed Jul 21, 2019
1 parent afd907f commit 8e31ff3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/base-text-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,13 @@ export default class BaseTextComponent extends PureComponent {
}

_getMaskedValue(value) {
const defaultValue = this._getDefaultValue(value)
if (defaultValue === '') {
return ''
}

return this._maskHandler.getValue(
this._getDefaultValue(value),
defaultValue,
this._getOptions());
}

Expand Down

0 comments on commit 8e31ff3

Please sign in to comment.