omarshammas / jquery.formance

A jQuery library for formatting and validating form fields, based on Stripe's jQuery.payment library.
omarshammas.github.io/formancejs
Other
632 stars 105 forks source link

Month > 12 is not prevented while deleting and re-typing #22

Open n20084753 opened 9 years ago

n20084753 commented 9 years ago

The dd/mm/yyyy formatting breaks after deleting and re-typing again the month is not restricted to 12

screen shot 2015-03-27 at 3 17 38 pm

jh3y commented 9 years ago

@n20084753 I'm not sure I get the problem here. The screenshot shows the correct behaviour and evaluates to invalid.

formance isn't in place to stop the user from typing invalid numbers, it's in place to correctly format and validate input.

Prevention of submitting a form with these values is also the responsibility of the application logic.

@jh3y