Comments (2)
dont you think it is better returning non formatted value as number or float when inputed value is number and string when inputed value is not number. Because now non formatted value is still string even input value is number or float
from react-number-format.
First parameter on onChange handler will be event object and second parameter will be nonFormatted value. Will add this on doc.
<NumberFormat thousandSeparator={true} prefix={'$'} onChange={(e, value) => {
//value is non formatted value
}}/>
from react-number-format.
Related Issues (20)
- `allowLeadingZeroes` prop doesn't work HOT 1
- Event type difference in onValueChange because of SyntheticEvent
- Difference between NumericFormat component and numericFormatter function HOT 1
- How to create a similar money input?
- I only want to see number only? HOT 3
- Add link to your documentation to repository details HOT 2
- `suffix` not working properly in `jest` + `testing-library` HOT 2
- onValueChange not always fire HOT 1
- Is that any way possible to just display the number as user enters and do not apply formatting. Currently I am facing the issue on when I type more than 16 digits it automatically get formatted and inserted 0 at last when i type further.
- 5.3.1 Regression: Typing "." leads to "^0.00" where "^" is location of caret HOT 1
- NumericFormat: customInput Antd Input is not working properly HOT 9
- Rounding with decimalScale={1} HOT 1
- IPv4 Address Mask HOT 1
- NumericFormat suffix is not allowing antdesign input to handle suffix HOT 1
- Support IME japanese keyboard HOT 2
- Not able to delete negative sign using backspace button HOT 1
- Intl.NumberFormat with fraction digits. input box <=> form state mismatch HOT 2
- percentage formatting, input box <=> form state mismatch
- Controlled Input will convert -0 to 0 HOT 2
- Problem with default value doesnt override mask, but add this value to end mask HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-number-format.