src/hooks/MIGRATION_V9.md
Downshift v8 receives a list of breaking changes, which are necessary to improve both the user and the developer experience. The changes are only affecting the hooks and are detailed below.
The handlers below have their types improved to reflect that they will always get called with their corresponding state prop:
useCombobox
useSelect
useMultipleSelection
The prop has been removed from useSelect and useCombobox. If you still need an
a11y selection message, use either getA11yStatusMessage or your own aria-live
implementation inside a onStateChange callback.
The prop has been removed from useMultipleSelection. If you still need an a11y
removal message, use either getA11yStatusMessage or your own aria-live
implementation inside a onStateChange callback.
The prop has been also added to useMultipleSelection, but has some changes reflected in each of the hook's readme.
Downshift is not affected, it has the same getA11yStatusMessage as before,
no changes there at all.The HTML markup with the ARIA attributes we provide through the getter props should be enough for screen readers to report:
If you need anything more specific as part of an aria-live region, please use
the new version of getA11yStatusMessage or your own aria-live implementation.
References:
This prop has been removed from useCombobox. You should use itemToKey
instead.
Reference: