Skip to content

Releases: wojtekmaj/react-date-picker

v7.4.0

23 Mar 07:52

Choose a tag to compare

What's new?

  • Added support for onCalendarOpen and onCalendarClose props (#140).

v7.3.0

03 Mar 15:08

Choose a tag to compare

What's new?

  • Implemented React-Fit, a smarter system measuring where the Calendar 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).

v7.2.0

20 Jan 19:12

Choose a tag to compare

Note: Please be advised that an minor breaking change was introduced in the new React-Calendar version, so if you used formatMonth, formatMonthYear or formatShortWeekday props from React-Calendar, you may need to adjust function arguments according to the updated documentation.

What's new?

What's changed?

  • React-Date-Picker now uses Babel 7 for compilation (#106).
  • 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.

Bug fixes

  • Disabled autocomplete on all input fields (#129).
  • Fixed a crash when null locale prop was passed.

v7.1.1

18 Dec 20:50

Choose a tag to compare

Bug fixes

  • Fixed Calendar re-opening on click, which may have caused unpredictable behavior.

v7.1.0

21 Nov 14:45

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.

What's changed?

  • Calendar widget will no longer close automatically on any value change.

Bug fixes

  • Fixed calendar widget not closing when input was blurred using the keyboard.

v7.0.0

12 Oct 06:57

Choose a tag to compare

See Upgrade guide from version 6.x to 7.x.

What's new?

  • Inputs now automatically select on focus.
  • Leading zeros are now wrapped in a <span /> element with react-date-picker__inputGroup__leadingZero class name for easier styling.
  • Internal changes in DateInput component that will allow for more refined styling of React-Date-Picker along with React-DateTime-Picker and React-DateRange-Picker.

What's changed?

  • Year input placeholder is now ---- instead of --.

Bug fixes

  • Fixed input height that could be off by 2 pixels on some devices.

v6.13.0

07 Oct 09:15

Choose a tag to compare

What's new?

  • You can now attach event props (onClick, onKeyDown...) directly to React-Date-Picker root.
  • Updated documentation to make it clear how to remove calendarIcon and clearIcon (#98).
  • Typings for react-date-picker/dist/entry.nostyle have been added (#104). Thanks, @ericdemo07!

What's changed?

  • Auto resizing input fields mechanism has been improved.

Bug fixes

  • Removed needless update when the user clicked somewhere on the screen while the calendar in React-Date-Picker was closed.

v6.12.1

11 Sep 16:59

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 (#99).
  • 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.

v6.12.0

19 Aug 08:43

Choose a tag to compare

What's new?

  • React-Calendar was updated to 2.17.0 with tons of fixes and new features. Most importantly, Arabic and Hebrew calendars were added.

What's changed?

  • React-Date-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.

v6.11.3

03 Aug 18:38

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 React-Date-Picker allowing the user to go beyond maximum date supported in JavaScript.
  • Fixed native input (not visible for most users, stays hidden; it's there for accessibility purposes) treating as UTC, instead of local user's time.
  • Fixed clearing native input causing a crash.