Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Default default_date gets selected even if it falls outside the accebtable date range #97

Closed
whYME953 opened this issue Nov 27, 2015 · 3 comments
Labels

Comments

@whYME953
Copy link

whYME953 commented Nov 27, 2015

If I set the "max" to yesterday (for example,) today's date will still populate the select when the picker opens even though it's outside the acceptable range.

I imagine this is also a problem when default date is set by the user, but presumably in that case they'd make sure to set a valid default_date.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@nazar-pc
Copy link
Owner

Would you be so kind to prepare demo on JsFiddle/JsBin?

@whYME953
Copy link
Author

http://jsfiddle.net/7fy1d25s/

When no default_date is set or an invalid date is set, it won't let you "select" the date, but it'll put the default in the input field.

as long as there's a valid default_date set there's no problem.

@nazar-pc
Copy link
Owner

This bug should be addressed in a6f74a8: https://jsfiddle.net/7fy1d25s/2/
Could you try build from master branch before I release it (there was quite a lot changes)?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants