Toolkit for building accessible web apps with React
@ariakit/[email protected]
Components like MenuItem
, ComboboxItem
, and SelectItem
should now offer improved performance when rendering large collections.
FormControl
componentThis version introduces a new FormControl
component. In future versions, this will replace the FormField
component.
pointerup
event instead of mouseup
.@ariakit/[email protected]
Components like MenuItem
, ComboboxItem
, and SelectItem
should now offer improved performance when rendering large collections.
FormControl
componentThis version introduces a new FormControl
component. In future versions, this will replace the FormField
component.
pointerup
event instead of mouseup
.@ariakit/[email protected]
Components like MenuItem
, ComboboxItem
, and SelectItem
should now offer improved performance when rendering large collections.
@ariakit/[email protected]
Combobox
with the autoSelect
prop calling onFocus
with every input change.Hovercard
flickering when used with shadow DOM.Select
with Combobox
scroll jumping when opening using keyboard navigation.CompositeItem
triggering blur on focus.ComboboxItem
not triggering the onClick
event when the item is partially visible.@ariakit/[email protected]
Combobox
with the autoSelect
prop calling onFocus
with every input change.Hovercard
flickering when used with shadow DOM.Select
with Combobox
scroll jumping when opening using keyboard navigation.CompositeItem
triggering blur on focus.ComboboxItem
not triggering the onClick
event when the item is partially visible.@ariakit/[email protected]
CompositeItem
triggering blur on focus.Pressing the Home or End keys on text fields will now move the cursor (selectionStart
/selectionEnd
properties) to the start or finish of the text when using the press
function.
@ariakit/[email protected]
The Combobox components now support the modal
prop on ComboboxPopover
.
When a modal combobox is expanded, users can interact with and tab through all the combobox controls, including Combobox
, ComboboxDisclosure
, and ComboboxCancel
, even if they're rendered outside the popover. The rest of the page will be inert.
The Combobox
component now includes a new getAutoSelectId
prop. This allows you to specify the ComboboxItem
that should be auto-selected if the autoSelect
prop is true
.
By default, the first enabled item is auto-selected. Now you can customize this behavior by returning the id of another item from getAutoSelectId
:
<Combobox
autoSelect
getAutoSelectId={(items) => {
// Auto select the first enabled item with a value
const item = items.find((item) => {
if (item.disabled) return false;
if (!item.value) return false;
return true;
});
return item?.id;
}}
/>
The Combobox
component now includes a data-active-item
attribute when it's the only active item in the composite widget. In other words, when no ComboboxItem
is active and the focus is solely on the combobox input.
You can use this as a CSS selector to style the combobox differently, providing additional affordance to users who pressed ↑ on the first item or ↓ on the last item. This action would place both virtual and actual DOM focus on the combobox input.
.combobox[data-active-item] {
outline-width: 2px;
}
useTabStore
return value not updating its own reference.ComboboxDisclosure
to update its aria-expanded
attribute when the combobox expands.Maximum update depth exceeded
warning when rendering multiple collection items on the page.@ariakit/[email protected]