Closed jaaqo closed 8 years ago
This error does not happen on commit 8f513c16c451c69b6a244d95830b18d8c93edf11
Yeah, it looks like a bug snuck in with the latest pr. Looks like it would just need to check that the month is not 0 on the selected-date
before decrementing.
just pushed your fix to clojars, let me know if everything looks good
Works fine now!
:+1:
Steps to reproduce:
lein new reagent datepicker-test
loading-page
Add a simple form
Results in
And latter expanded:
After little debugging it seems the month in
:init-field datepicker
is -1 which later causes the error.Somehow line 140 in reagent-forms.core results in -1.. Is there something I'm doing wrong?