react-currency-input-field
react-currency-input-field copied to clipboard
Add Flag to Control Negative Currency Format with Prefix (Default: -$5, Optional: $-5)
By default, the field format displays negative currency as -$5. For our project, we require the format to be $-5. I propose adding a flag called minusAfterPrefix to control the behavior of negative currency formatting, which will only be applied when the prefix is used for the field.
Proposed Solution
Add a new flag minusAfterPrefix that allows users to choose between two formats when a prefix is used:
- Default: -$5
- Optional: $-5
Benefits
- Increased flexibility and adaptability of the library.
- Ability to customize the format according to project requirements when using a prefix.
Additional Information If you approve this change, I can create a pull request with the necessary modifications.