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

Number cannot accept negative values

Open thevikas opened this issue 8 years ago • 1 comments

https://github.com/powmedia/backbone-forms/blob/7aad9e3be590b0bda964f6156b7a438e89d00e45/src/editors/number.js#L52

A Number can also be a negative which starts with a dash. The regex fails to accept this sort of numbers. The same field shows a slider on the right. One can that slider to get to negative numbers and that is fine and passes validation since no keypress was done.

Any suggestion on how to get around it?

thevikas avatar Feb 07 '18 06:02 thevikas

Found a fix (2013) has already been merged to master (2016): https://github.com/powmedia/backbone-forms/pull/224/commits/91bbe41f439bc590d53591de6bcb7bf868d1685b

So i guess we are waiting for it to be released. Can we get it quicker?

thevikas avatar Feb 07 '18 07:02 thevikas