How to make TextInput accept only 2 decimals
The price must only contain 2 decimals
But when i try it out, i can write several decimals.
What i am missing?

3 Replies
I'm not sure there is a way to limit the decimal places directly. You could use
->afterStateUpdated(function ($state, $set)
and $set
the value of the field to a rounded valueTake a look at input masking
like this works, but i want it to be formatted like this:
1.500,40
but i get:
1,500.40
i guess at the moment doesnt accept localisation or idk how to set it up
now im trying this 👀