Skip to content

Releases: citizensadvice/react-combo-boxes

v5.0.0

06 Nov 15:38

Choose a tag to compare

v4.0.0

02 Jul 08:29

Choose a tag to compare

Changed

Thanks to recent improvements in browser and screen-reader support it has been possible to make a number of simplifications.

  • Remove non-breaking space separators between options as the Mac Chrome bug requiring this has been resolved
  • Use aria-labelledby for all option labels involving groups instead of inserting visually hidden text
  • Removes the renderGroupAccessibleLabel and renderTableCellColumnAccessibleLabel from all components
    as these are no longer required
  • Removed managedFocus option. Focus for screen-readers now entirely uses aria-activedescendant which now
    works reliably over all screen-readers
  • Switch to the ARIA 1.2 pattern as this now works reliably over all screen-readers
  • Adjusted Escape to behave like the aria-practices recommendations. Press once to close and press a second time
    to clear the value.
  • Pressing Alt + ArrowUp no longer clears the search value
  • A drop down with no options is now focusable

Fixes

  • Fix an issue where drop down aria-live message was prefixed with "undefined"
  • Fix the scrolling options not working in the drop down
  • Fix pressing Alt + ArrowUp on a dropdown changes the selected option to the default option

v3.0.2

13 Jan 13:29

Choose a tag to compare

  • Fix stylelint-config-standard-scss was accidentally added to dependencies instead of devDependencies

v3.0.1

09 Jan 10:17

Choose a tag to compare

  • Added tabindex="-1" to the listbox table container to prevent it becoming an extra tab-stop
  • Fix floating UI peer dependency was pinned to a minor version

v3.0.0

26 Nov 10:12

Choose a tag to compare

  • Updates SASS from @import to @use to fix deprecation warnings (potentially breaking)
  • Updates SASS to fix mixed declaration errors
  • Do not close a combo-box or drop-down if the focus is leaving the browser window
  • Add Node 22 to testing matrix
  • Switch to eslint 9

v2.9.0

20 Jun 12:55

Choose a tag to compare

  • If the value is updated for a combo-box and the listbox is visible and there is no user entered search, onSearch will be triggered
  • React 18.3 support
    • Remove default props in favour of default parameters
    • Fix warnings on spreading key
  • Remove Node 16 from the test matrix

v2.8.1

08 Feb 17:22

Choose a tag to compare

  • Fix layout functions were still being run without the listbox or input

v2.8.0

11 Jan 10:50

Choose a tag to compare

Changed

  • (Potentially breaking): Layout functions are now called when the listbox is hidden,
    allowing clean-up methods to be run

Fixed

  • layout_popover is not hiding the popover when a listbox is closed which can result in the listbox not being in the top layer

v2.7.0

19 Dec 12:53

Choose a tag to compare

Added

  • Added a new layout_popover to resolves issues displaying list boxes inside
    of scrolling areas or a modal <dialog>. If used, this has a peer dependency of floating-ui

Fixes

  • placeholderOption should not produce an option for <Radios> and <Checkboxes>
  • layout functions could be called with the listbox or input as null if the ref changed before the animation frame

v2.6.2

20 Jul 16:27

Choose a tag to compare

  • fixed placeholderOption should allow a blank value