How to block using of decimal numbers in TextInput
Hi, when using a TextInput, how can I block that the user can fill in a decimal number?
3 Replies
You can use alpine mask for it. There should be mask function where you can do something like
->('999999999') so that only allowed characters will be the numbers. Although this approach also limits char count to number of 9's in the mask. I am not sure if you can use '9+' as input for mask for something like regex multipleSolution
Thank you. I was already looking at that, I thought maybe there is a more straight forward way to get this done. Thanks!