- Time editor now handles the A format to display 12h times.
- Added typescript definition file.
- Changed button markup and updated styles.
- Fixes autoclosing on time change.
- Controlled datepicker now working for controlled datepickers
- The picker can be used as a month or year picker just giving a format date without days/months
- Updates test suite
- Fixed rdtActive not getting set.
- Add react-dom as external dependency.
- Fixed rendering a span directly under the calendar table.
- Added dev setup
- Added example
- Fixed january days go to november problem.
- Fixed two days can't have the same header name.
- DOM classes are now prefixed with
rdt
. - A modified version of OnClickOutside is now included in the code to handle react 0.13 and 0.14 versions.
- Updated dependencies.
- Added open prop.
- Added strictParsing prop.
- Fixed not possible to set value to
''
.
- Removed classlist-polyfill so the component can be used in the server side.
- Updates react-onclickoutside dependency to avoid the bug Pomax/react-onclickoutside#20
- Datepicker can have an empty value. If the value in the input is not valid,
onChange
andonBlur
will return input value. onBlur
is not triggered anymore if the calendar is not open.
- Added travis CI
- Fixed not showing timepicker when
dateFormat
=false
.
This is the release candidate for this project. Now it is pretty usable and API won't change drastically in a while. If you were using the alpha versions (v0.x) there is a bunch of breaking changes:
date
prop is now calleddefaultValue
and it is the initial value to use the component uncontrolled.value
prop has been added to use it as a controlled component.- Removed
minDate
andmaxDate
props. Now to define what dates are valid it is possible to use the newisValidDate
prop. dateFormat
andtimeFormat
default value is always the locale default format. In case that you don't want the component to show the date/time picker you should setdateFormat
/timeFormat
tofalse
.
Moreover:
- Buttons doesn't submit anymore when the Datetime component is in a form.
className
prop has been added to customize component class.