jtsage / jtsage-datebox

A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
http://datebox.jtsage.dev/
Other
474 stars 166 forks source link

Datebox not correctly registering changes #300

Closed bfeldhake closed 10 years ago

bfeldhake commented 11 years ago

My datebox is defaulting to the current day 11 - 21 - 2013

If I click in the year textbox and change the year to 2015, then click the plus button, I get 2014 instead of 2016.

jtsage commented 10 years ago

I've had to make a compromise here because of the steppers available - basically, the new behavior is that if you click the plus after entering 2015, you will get 2015 instead of 2016... it just unfocused the event and runs that bit of code (in actuality, it adds one, then it looks at the input and uses that instead) If not for the repButton bit, I could do that math as well, but it's easier just to have it require the second click.