bootstrap-touchspin icon indicating copy to clipboard operation
bootstrap-touchspin copied to clipboard

restrict alpha chars

Open eness opened this issue 9 years ago • 2 comments

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.

eness avatar Feb 16 '16 14:02 eness

+1

bostondevin avatar Nov 08 '16 07:11 bostondevin

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.

istvan-ujjmeszaros avatar Apr 22 '18 21:04 istvan-ujjmeszaros

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.

istvan-ujjmeszaros avatar May 25 '23 03:05 istvan-ujjmeszaros