How to make TextInput to allow only numbers without using numeric()
Currently when using TextInput::numeric(), the input gonna be
type="number"
By using numeric
the minLength and maxLength no longer works. And it also allows decimal values.2 Replies
You could use a regex validation like so /^[0-9]*$/ to only accept digits.