Skip to content

Tag: formik

Change number format and get it as a number

I am using MUI and Formik to create form. I need to change numbers format in the all inputs: 1000.00 -> 1.000,00 A created function formatNumber(num) to do this, it works. But problem is that it returns string, and my API wait number (I can do nothing with that). I tried to use react-number-format but it a…

I want to reset value to initial value formik

I am getting some value from the backend and I am string in state and using throw formik what my task is I create reset onClick so like if I edit something but I don’t want to use it then if I click on reset onClick then it set to initial value and I create one state and update that

Set autocomplete off for Formik field

To set the autocomplete off for a simple input it must be done like this: <input type=”text” autocomplete=”off”> In this case, there is a Formik Field and the input looks like this: and it seems that adding autocomplte=”off” doesn’t work in this case: Any ideas?…