Comments (3)
So the type here 'text' | 'tel' | 'password' is intentional.
type: 'number' will not work as it applies non-numeric formatting in the input itself. And other types also do not make much sense for it as they come with custom HTML input behaviour.
Maybe type 'search' can fit here. But this hasn't been asked till now.
try this, this won't work <NumericFormat type="number" thousandSeparator value={123} />
from react-number-format.
The documentation doesn't say what the possible values are, only that they include text | tel | password.
from react-number-format.
Right, that's my point. I believe the documentation is more correct as far as the intent, but the actual TypeScript types don't allow anything other than 'text' | 'tel' | 'password'
. The code should change, not the documentation.
from react-number-format.
Related Issues (20)
- `inputmode` attribute not set on input element when using `customInput` HOT 2
- Problem fixedDecimalScale HOT 1
- Does this work with MUI5? HOT 2
- maximumFractionDigits causing strange behaviour HOT 1
- `allowLeadingZeroes` prop doesn't work HOT 1
- Event type difference in onValueChange because of SyntheticEvent
- Difference between NumericFormat component and numericFormatter function HOT 3
- 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
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.