Skip to content

v2.4.0

Compare
Choose a tag to compare
@clukhei clukhei released this 22 Mar 13:32
· 48 commits to v2 since this release

What's new

Pagination

  • showFirstPage and showLastPage prop introduced to enable users to show and allow direct navigation to first/last page of the pagination component. Resolves #213

Datepicker

  • Accessibility features and improvements including allowing users to type date from input and keyboard accessible menu
  • Previously the Datepicker's input was read-only, disallowing users to type dates into the datepicker. From 2.4.0, input masking is implemented on the Datepicker's input to allow users to type dates.
  • By allowing users to type on the datepicker , there are a few implications:
  1. placeholder prop becomes obselete and will be deprecated and removed in the next major version bump. placeholder prop is still available, but it does nothing.
  2. Validation stylings and validation message for form constraint validation are implemented by default to the Datepicker. invalidFeedback prop is introduced to allow users to customise the error message when an invalid date is typed.

Fixes

  • defaultProps is deprecated for Functionional Components in React 18 and will be removed in React 19. In response to that, we have removed the use of defaultProps for affected components in our library causing the console warning.
    They are: SelectableCard, Tooltip, Tabs and OverlayTrigger.