Skip to content

Releases: wojtekmaj/react-datetime-picker

v2.2.0

03 Mar 15:12

Choose a tag to compare

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 default dist, Parcel will properly recognize it and use proper Babel configuration.

v2.1.0

21 Nov 15:14

Choose a tag to compare

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

12 Oct 07:41

Choose a tag to compare

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 with react-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

07 Oct 09:52

Choose a tag to compare

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 and clearIcon.

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

11 Sep 17:43

Choose a tag to compare

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

03 Sep 16:58

Choose a tag to compare

What's new?

  • Added disableClock flag that, well, disables clock.

Bug fixes

  • Fixed min/max date not applied to time components properly (#31).
  • Fixed native input value not parsed properly in some cases.

v1.5.0

19 Aug 08:58

Choose a tag to compare

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

03 Aug 18:06

Choose a tag to compare

What's changed?

  • Clearing inputs manually will call onChange with null 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

17 Jul 07:07

Choose a tag to compare

Bug fixes

  • Fix an error causing hour 0 to be displayed as 0 am instead of 12 am in 12-hour time format (via React-Time-Picker update).

v1.4.0

16 Jul 17:22

Choose a tag to compare

All dependencies have been updated and new Airbnb ESLint rules have been enforced.

What's new?

Bug fixes

  • Fixed an issue with displaying inputs on locales largely different from American/European, like zh-CN (#15).