Input does not support Decimals #1513
-
The only available type for numbers is number, however it only supports pattern="[0-9]*". Wondering if can add step attribute to support Decimal. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks @ycaoT, we're discussing it amongst the team right now. |
Beta Was this translation helpful? Give feedback.
-
Hi @ycaoT. We're still discussing this as a team. If you're blocked by our current implementation, you could still use Input with a pattern that allows decimals. I've built a quick CodeSandbox showing how it might work: https://codesandbox.io/s/angry-feather-ylsi7?file=/src/index.tsx |
Beta Was this translation helpful? Give feedback.
Hi @ycaoT. We're still discussing this as a team. If you're blocked by our current implementation, you could still use Input with a pattern that allows decimals. I've built a quick CodeSandbox showing how it might work: https://codesandbox.io/s/angry-feather-ylsi7?file=/src/index.tsx