backbone-forms icon indicating copy to clipboard operation
backbone-forms copied to clipboard

Allow negative sign in number field

Open commandodev opened this issue 13 years ago • 6 comments

Simple change to the regex to allow negative numbers

commandodev avatar Dec 07 '12 16:12 commandodev

it makes sense that the number field should allow negatives, though i'd really like to see an option that could be passed (in my case, i only want >= 0)

philfreo avatar Dec 28 '12 10:12 philfreo

Would it make sense to have both of these things as validators?

commandodev avatar Dec 28 '12 10:12 commandodev

Yeah that makes sense. Also please make changes to the src rather than distribution files in pulls

philfreo avatar Dec 28 '12 10:12 philfreo

This would also solve the problem that when entering a negative number using the HTML5 spinners the input field becomes unusable (e.g. cannot type in it unless negative sign is removed again).

janpaul123 avatar Apr 05 '13 11:04 janpaul123

Can this change be made in the src folder rather the the dist ?

exussum12 avatar Feb 06 '16 17:02 exussum12

~~It should have been fixed by #403~~ Edit: sorry, didn't realize that it's not about the validator.

fonji avatar Feb 06 '16 21:02 fonji