Releases: wojtekmaj/react-datetime-picker
Releases · wojtekmaj/react-datetime-picker
v2.7.1
v2.7.0
v2.6.0
v2.5.0
What's new?
- Added support for
aria-label
s on each input and button. See README for details. - Added support for
MMM
(short month) andMMMM
(long month) informat
prop. - Automatically jump to the next input if the user can't enter any more digits (#49).
What's changed?
- Documentation should now be easier to read thanks to improved clarity and default values column.
- Optimized the number of listeners attached by React-DateTime-Picker.
- Added more unit tests.
Bug fixes
- Fixed AM/PM not selectable in some locales using Arabic numerals.
- Fixed a warning on
amPm
mistakenly required when there is a possibility of it being null ifvalue
is null too (#59). - Fixed Calendar not closing in some cases on mobile Safari. Thanks, @victor-cordova!
- Fixed input value selection immediately un-selecting on non-Chromium versions of Microsoft Edge.
- Fixed default icon styling affecting custom icons by changing their
fill
properties.
v2.4.0
What's new?
- Added support for
format
prop which allows to overwrite default date format determined either fromlocale
prop or automatically. See README for details.
What's changed?
- Whitespace in dividers is now automatically preserved.
- Simplified some internal methods.
- Added more unit tests.
Bug fixes
- Fixed issues where iterating an HTMLCollection would cause issues in older versions of Edge and IE. Thanks, @mathieumg!
- Fixed jumping to previous/next input not working if leading zeros were present
v2.3.0
v2.2.1
v2.2.0
What's new?
- Implemented React-Fit, a smarter system measuring where the Calendar and Clock should be placed. React-Fit will check for collisions with the nearest scrollable container (unlike previously, hardcoded
document.body
) on both axis (unlike previously, just on Y axis).
What's changed?
- React-DateTime-Picker now uses Babel 7 for compilation.
- Using Parcel, if you decide for whatever reason to import from
src
directory instead of defaultdist
, Parcel will properly recognize it and use proper Babel configuration.
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.