-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a mask overrides the Field's format function #46
Comments
This library does implement |
Something like a multiplier, or possibly even passing in a format function as one of the argument might be cool. This actually isn't as big of an issue as I originally though, and really boiled down to the way we were parsing data. We we're able to work around it by feeding the input with initialValues in there modified state. Feel free to close this one if you want, or if you think it would be valuable, I would be happy to take a look at it when I get some free time. |
I don't think that passing a The |
I'll publish the |
🎉 This issue has been resolved in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What are you reporting?
Adding a mask overrides the Field's format function
What is the current behavior?
When you add a format function before the mask, the mask overrides the form. In my case, I need to convert a decimal value, e.g. 0.70 to a whole number for percentage formatting:
In this case, InputField is just redux form Field, and percentageNumberMask is a custom mask to show a percent sign. My format function never gets called. Looking through the code, I don't see a way to hook into the mask to do my calculations.
The text was updated successfully, but these errors were encountered: