unstale

npm / react-datepicker

react-datepicker

What changed in react-datepicker 8 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.

1 breaking6 new APIs and options4 behavior and defaults24 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.9 on npm

react-datepicker 930 changes

New APIs and options 6

  • Adds aria-label prop support for DatePicker to improve accessibility.

    9.0.0release notes

  • Adds a prop for custom formatting of multi-select dates.

    9.0.0release notes

  • Adds a prop to control month header placement: top, middle, or bottom.

    9.0.0release notes

  • Adds a prop for custom popper positioning in advanced layouts.

    9.0.0release notes

  • Adds a prop to customize weekday header rendering.

    9.0.0release notes

  • Add the timeZone prop to display and handle dates in any timezone; date-fns-tz is an optional peer dependency.

    9.0.0release notes

Behavior and default changes 3

  • Calling event.preventDefault() in onClickOutside prevents the calendar from closing, useful for custom portal-based dropdowns in the calendar header.

    9.1.0release notes

  • The calendar view navigates when users type partial dates.

    9.0.0release notes

  • Internal sizing uses em units so it can inherit font size from the parent.

    9.0.0release notes

Fixes and other changes 21

  • The calendar no longer breaks due to Safari auto-translate.

    9.1.0release notes

  • Passing date props as strings no longer causes a crash.

    9.1.0release notes

  • TypeScript types for DatePicker props were improved.

    9.1.0release notes

  • The v8 default styles were restored.

    9.1.0release notes

  • An empty :global selector that breaks Lightning CSS was removed.

    9.1.0release notes

  • Clearing a masked input and blurring it now clears the selection.

    9.1.0release notes

  • Base styles were added for month/year select dropdowns.

    9.1.0release notes

  • When strictParsing is false, the native Date fallback is restored.

    9.1.0release notes

  • A warning for the optional date-fns-tz dependency was prevented.

    9.1.0release notes

  • Using withPortal no longer adds an extra wrapper div.

    9.1.0release notes

  • The calendar view updates when selected or startDate props change programmatically.

    9.0.0release notes

  • Allows typing dates before 1800 when minDate permits.

    9.0.0release notes

  • Improves discriminated union type inference for DatePickerProps.

    9.0.0release notes

  • Holiday date strings are parsed as local time to prevent timezone shifts.

    9.0.0release notes

  • Prevents the in-selecting-range highlight from appearing on days outside the current month.

    9.0.0release notes

  • Prevents the month view from jumping when selecting from the second calendar in range mode.

    9.0.0release notes

  • Hiding the popper arrow now properly removes its offset.

    9.0.0release notes

  • Updates preSelection when the input changes in selectsRange mode.

    9.0.0release notes

  • Time input now works with selectsRange, allowing start and end dates to be selected independently.

    9.0.0release notes

  • Time selection now works with selectsRange, allowing start and end dates to be selected independently.

    9.0.0release notes

  • Fixes infinite height growth in the time picker.

    9.0.0release notes

react-datepicker 85 changes

Breaking changes 1

  • The calendar now displays the startDate as the first month.

    8.10.0release notes

Behavior and default changes 1

  • Keyboard accessibility is added for the timepicker.

    8.10.0release notes

Fixes and other changes 3

  • Keyboard focus no longer gets lost during same-month navigation in inline mode.

    8.10.0release notes

  • Standard HTML aria attribute names are supported.

    8.10.0release notes

  • Export support is fixed for webpack versions below 5.94.

    8.10.0release notes