Open jeduardo824 opened 1 year ago
PS: I know this component is in Beta state, just reporting to put it on the radar if it is not yet.
The CurrencyInput has a pattern="\d*" (here) that is not allowing numbers with dots or commas.
pattern="\d*"
Steps to reproduce the behavior:
CurrencyInput
No error is thrown
Form validation raises an error asking to provide a value matching the specified format
Create a form that will ask for the value of something in dollars.
NextJS application with Formik
Desktop (please complete the following information):
Possible Solution I don't think this format is needed, so maybe just remove it or create a pattern that allows dots and commas
Describe the bug
PS: I know this component is in Beta state, just reporting to put it on the radar if it is not yet.
The CurrencyInput has a
pattern="\d*"
(here) that is not allowing numbers with dots or commas.Screenshots
To Reproduce πΉ
Steps to reproduce the behavior:
CurrencyInput
componentExpected Behavior π€
No error is thrown
Current Behavior π―
Form validation raises an error asking to provide a value matching the specified format
Context π¦
Create a form that will ask for the value of something in dollars.
Your Environment π
NextJS application with Formik
Desktop (please complete the following information):
Possible Solution I don't think this format is needed, so maybe just remove it or create a pattern that allows dots and commas