bootstrap-touchspin
bootstrap-touchspin copied to clipboard
restrict alpha chars
hey there,
it would make sense if user unable to use alpha chars in a decimal spinner field. but right now I can use a-zA-Z when I manually set on the input.
+1
It is always getting converted to a number with Number() which results in 0 when there is an alpha character used. But I am thinking about adding a setting to enable this restriction.
I am closing this as it gets converted when the input is losing focus so it shouldn't be an issue.
You can also initiate the plugin on an <input type="number"> to disable non-numeric inputs altogether.