simple-mask-money icon indicating copy to clipboard operation
simple-mask-money copied to clipboard

Do not set value as 0 by default

Open sobrinho opened this issue 4 years ago • 1 comments

My fields have value="" but when the mask is applied it defaults to 0,0 but empty have a meaning in my context.

sobrinho avatar May 13 '21 18:05 sobrinho

Looks like using fixed: false removes the zero but then I have _,__ which I would like to keep as empty entirely.

This line seems to be the culprit: https://github.com/codermarcos/simple-mask-money/blob/25664716e1a968d5090a928fc3f9fab8f016e5fe/src/core.js#L61

sobrinho avatar May 13 '21 18:05 sobrinho

@sobrinho I supose that we've solved it at version 4.x.x. Could you try the new version? Thanks 💖

codermarcos avatar Sep 19 '23 12:09 codermarcos