Releases: wojtekmaj/react-datetime-picker
Releases · wojtekmaj/react-datetime-picker
v2.1.0
What's new?
- Brand new input rendering algorithm was implemented. It should be more reliable, especially for
zh-CN
locale (#42).
What's changed?
- Calendar and clock widgets will no longer close automatically on any value change (#43).
Bug fixes
- Fixed calendar and clock widgets widget not closing when input was blurred using the keyboard.
- Fixed widgets not opening above the input when needed.
v2.0.0
See Upgrade guide from version 1.x to 2.x.
What's new?
- Inputs now automatically select on focus (#32).
- Leading zeros are now wrapped in a
<span />
element withreact-datetime-picker__inputGroup__leadingZero
class name for easier styling. - Internal changes in
DateTimeInput
component that will allow for more refined styling of React-DateTime-Picker along with React-DateTimeRange-Picker.
Bug fixes
- Fixed input height that could be off by 2 pixels on some devices.
v1.7.0
What's new?
- You can now attach event props (
onClick
,onKeyDown
...) directly to React-DateTime-Picker root. - Updated documentation to make it clear how to remove
calendarIcon
andclearIcon
.
What's changed?
- Auto resizing input fields mechanism has been improved (#33).
Bug fixes
- Removed needless update when the user clicked somewhere on the screen while the calendar in React-DateTime-Picker was closed.
v1.6.1
What's changed?
- Updated all dependencies.
Bug fixes
- Fixed the date being wrongly formatted on IE11 in
zh-CN
locale. - Fixed DateTimePicker not working properly on older (<16.3) versions of React.
- Updated
react-calendar
dependency which fixes crash on IE11. - Updated
get-user-locale
dependency which fixes uncaught error on IE11 caused by Array.prototype.includes not being implemented.
v1.6.0
v1.5.0
What's changed?
- React-DateTime-Picker now uses
get-user-locale
to get user's locale data. This should be more reliable, especially on macOS/iOS prior to 10.2.
v1.4.2
What's changed?
- Clearing inputs manually will call
onChange
withnull
value, just like clearing it with clear button does.
Bug fixes
- Fixed AM/PM dropdown not appearing on some locales (e.g. en-AU).
- Fixed native input (not visible for most users, stays hidden; it's there for accessibility purposes) treating date and time as UTC, instead of local user's time.
- Fixed native input allowing to change seconds if maxDetail was set to minute.
v1.4.1
v1.4.0
All dependencies have been updated and new Airbnb ESLint rules have been enforced.
What's new?
- Added support for 12-hour clock on supported locales (#1 via wojtekmaj/react-time-picker#3).
Bug fixes
- Fixed an issue with displaying inputs on locales largely different from American/European, like
zh-CN
(#15).