Releases: sparksuite/react-accessible-dropdown-menu-hook
Releases · sparksuite/react-accessible-dropdown-menu-hook
v4.0.0
Improved
- Breaking change: The default behavior is now to no longer focus the first menu item when the menu is opened via a click (#313)
- Ability to enable focusing the first menu item when the menu is opened via a click using the
focusFirstItemOnClick
option (#313)
v3.2.0
Improved
- Support custom HTML elements for the button when using TypeScript (#290)
Fixed
- Fix race condition adding/removing listeners, which allowed the escape key to break behavior in rare cases (#293)
v3.1.0
Improved
- Expose the
moveFocus()
function (#282)
v3.0.0
Improved
- Breaking change: The default behavior is now to focus the first menu item when the button is clicked (#279)
- Ability to disable focusing the first menu item via
disableFocusFirstItemOnClick
option (#279)
v2.3.1
Fixed
- Escape key wouldn't close menu if toggle button was focused (#277)
v2.3.0
Improved
- Optional keyboard controls have been implemented (#272)
v2.2.2
Fixed
- Prevent a possible race condition (#268)
v2.2.1
Fixed
- Work around a crash caused by other transpilers incorrectly transpiling RADMH’s code (#266)
v2.2.0
Improved
- Update virtually all packages in this repo (#215)
- Replace Enzyme with Testing Library (#215)
v2.1.2
Fixed
- Work around a bug introduced in React v17 when portals are present on the page (#217)
- No longer listen for click events while the dropdown is closed (#217)