Releases: v0ltoz/react-datetimepicker
Twelve Hour Mode
Change Start and End Props Bug Fix
Fixes a bug whereby if you change the start and end dates then the labels and calendar would not update as expected
deprecated componentWillMount
React 16, componentWillMount is deprecated and console is filled with below warning.
Warning: componentWillMount has been renamed, and is not recommended for us. Please update the following components: DateTimeRangeContainer.
Thanks to LakshmiVeejai for the PR 🥇
secondSupport
With this release comes better support for seconds. To use this feature set the local format to include seconds e.g. 'DD-MM-YYYY HH:mm:ss' . That way the date picker will show your second values in the input boxes.
standaloneMode & forceMobileMode
Introduction of two new features:
forceMobileMode (optional) {bool}
When set the mobile/condense breakpoint will be ignored meaning the component will stay in condensed mode all the time.
standaloneMode (optional) {bool}
When set the picker will be open by default and follow the styling given. This config option requires the below config styling to also be present in order to style the div
style={{
standaloneLayout:{display:'flex', maxWidth:'fit-content'}
}}
noMobileMode and leftMode
Introducing no mobile mode, when the prop is set then no matter what the screen size will remain in full screen mode and will not go into its reduced state.
Left mode allows you to open the picker Right to Left instead of the traditional Left to Right approach. This feature is in BETA
Major Release: Non Smart Mode, Dark Mode, Custom Styling
Introducing Non-Smart mode, A more traditional Calendar performance whereby the LHS is for From days only and the RHS is for to dates only. This is now the DEFAULT option for the picket. Smart mode must be enabled through the use of props.
Dark mode enabled through the use of the dark mode property.
Custom styling enabled for the calendar and the range buttons.
Support for React 16.8.1
New support for React 16.8.1.
React 15.6.2 remains supported also with this release.
Added RangeCallback, AutoApply and carried out a depedency audit
This release brings the ability to have a Range Callback function which is called when a new Range is clicked/selected.
AutoApply can be set. When set the apply button is removed. Instead, every click fires the apply callback
Fixed dependency security issues.