box-ui-elements
box-ui-elements copied to clipboard
fix(menu): focus next menu item when focused item removed
Fixed an issue where removing a focused menu item element will not set focus to the next element. This leads to poor a11y UX when the focus moves to the last menu element
In the demo below, Sharing & Details menu item is removed when resized to > 768px
Before: Focuses last element if focused element is removed

After: Focuses next element if focused element is removed
