Simon Egersand
2017-01-10 bdad6cea2c534f1808bc9eebffb75ba62abfada3
refs
author Simon Egersand <s.egersand@gmail.com>
Tuesday, January 10, 2017 22:10 +0100
committer Simon Egersand <s.egersand@gmail.com>
Tuesday, January 10, 2017 22:31 +0100
commitbdad6cea2c534f1808bc9eebffb75ba62abfada3
tree eec9646249f4f3b231eb2e25b25baf00e9e07c10 tree | zip | gz
parent 1d1e2d31cdb8db970831da67ecddc694a5c7cd71 view | diff
Bug fix for isValidDate

When setting isValidDate and viewMode=month and going from monthView to
yearView and then back the current month was rendered as invalid. This
is now fixed. Plus a bunch of consistency formatting fixes.

This is the fix from PR #198
(https://github.com/YouCanBookMe/react-datetime/pull/198).
4 files modified
129 ■■■■■ changed files
src/DaysView.js 7 ●●●●● diff | view | raw | blame | history
src/MonthsView.js 47 ●●●●● diff | view | raw | blame | history
src/YearsView.js 47 ●●●●● diff | view | raw | blame | history
tests/datetime-spec.js 28 ●●●● diff | view | raw | blame | history