Releases: wojtekmaj/react-calendar
Releases · wojtekmaj/react-calendar
v2.10.0
What's new?
- Ability to select range. You can enable range selection mode by using
selectRange
prop. - When passed a date range as a value, days can now be partially highlighted just like months, years and decades can. Behavior when passed a single date remains unchanged and won't cause day to be partially highlighted.
- Internal layout changes. They should not cause issues with custom styling, although in some extreme cases minor adjustments may be necessary.
- Several performance and size optimizations.
Bug fixes
- Fixed an accessibility issue with default calendar styling in which tiles selected using keyboard were not properly highlighted.
- Fixed uncaught error when provided (invalid) value as an array with one element.
- Fixed uncaught error when provided tileContent function that was not an instance of
Function
(e.g. Jest mock function). - Minor accessibility fix in Test suite.
v2.9.0
v2.8.0
What's new
- New callback functions -
onActiveDateChange
,onDrillUp
andonDrillDown
. All of them return an object withactiveStartDate
andview
(#18). - Optimized performance by using PureComponents.
Bug fixes
v2.7.1
v2.7.0
v2.6.0
v2.5.0
What's new?
- You can now pass
activeStartDate
as a prop toCalendar
, just like you could toMonthView
,YearView
etc. before. It will be used to determine a view to display when no value is given. When not provided, React-Calendar will display today's date by default like before (#13).
Bug fixes
- Fixed an invalid React prop type warning when
tileClassName
provided was a function.
v2.4.0
What's new?
- More control over what's displayed in calendar tiles. Use
tileContent
to provide custom content to the tiles - statically or dynamically. UsetileClassName
to apply custom class name to the tiles, also statically or dynamically. See README.md for more details (#9).
What's changed?
renderChildren
was replaced with much more powerfultileContent
. IntileContent
, you're no longer limited to passing content by using a function, you can also use a React element or a string.renderChildren
will automatically be mapped totileContent
til the next major version.
v2.3.1
What's new?
- Dates in
<time>
'sdatetime
attribute are now local (ISO 8601 compilant) dates, while previously we were using UTC. This makes the dates much more understandable.- For example, a tile with the first day of January 2017 is now marked as
2017-01-01T00:00:00.000
while previously it could be2016-12-31T23:00:00.000Z
if you were in UTC+1 timezone.
- For example, a tile with the first day of January 2017 is now marked as