Skip to content

Releases: wojtekmaj/react-datetime-picker

v2.9.0

02 Jan 11:04
76fa85c
Compare
Choose a tag to compare

What's changed?

  • Default styling was slightly changed to prevent React-DateTime-Picker from shrinking too much & to expand it correctly when width CSS is applied to .react-datetime-picker.

Bug fixes

  • Fix focus not jumping to the next field if e.g. "01" was entered in day field (#87).

v2.8.0

28 Nov 21:13
Compare
Choose a tag to compare

What's new?

  • Added support for autoFocus prop. More details in README.

What's changed?

  • Remove role="presentation" from DateTimeInput which may have caused accessibility issues. Thanks, @emilyuhde!
  • React-DateTime-Picker no longer relies on React-Calendar with date calculations. Instead, they both use common shared library: @wojtekmaj/date-utils (#78).
  • Implemented optimizations which should decrease build size.

Bug fixes

  • Fixed month dropdown not accepting monthPlaceholder prop properly. Thanks, @linusmarco!
  • Fixed checking if font was loaded if no font was given.

v2.7.1

30 Jul 10:36
03c24de
Compare
Choose a tag to compare

Bug fixes

  • Fixed native input not having aria-label applied properly

v2.7.0

30 Jul 10:35
0d99583
Compare
Choose a tag to compare

What's new?

  • You can replace default placeholders (--) with custom ones using dayPlaceholder, monthPlaceholder, yearPlaceholder, hourPlaceholder, minutePlaceholder, secondPlaceholder props.

v2.6.0

12 Jul 01:48
49e2bad
Compare
Choose a tag to compare

What's new?

  • You can now disable the calendar using disableCalendar prop.

Bug fixes

  • Fixed some locales displaying both 24- and 12-hour inputs.
  • Fixed React-DateTime-Picker crashing occasionally when a number with decimals was entered as one of the values.

v2.5.0

11 Jul 00:08
9cb6a70
Compare
Choose a tag to compare

What's new?

  • Added support for aria-labels on each input and button. See README for details.
  • Added support for MMM (short month) and MMMM (long month) in format 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 if value 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

02 May 18:59
Compare
Choose a tag to compare

What's new?

  • Added support for format prop which allows to overwrite default date format determined either from locale 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

23 Mar 08:49
Compare
Choose a tag to compare

What's new?

  • Added support for onCalendarOpen, onClockOpen, onCalendarClose and onClockClose props.

v2.2.1

03 Mar 15:26
Compare
Choose a tag to compare

What's new?

  • Updated React-Date-Picker and React-Time-Picker dependencies.

v2.2.0

03 Mar 15:12
Compare
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.