fix(select): use space as aria-labelledby separator (#5587)

* fix(select): use space as aria-labelledby separator

* chore(chageset): add changeset (#5586)

* chore(changeset): add issue number and remove select

---------

Co-authored-by: WK Wong <wingkwong.code@gmail.com>
This commit is contained in:
Dmytro Klymenko 2025-08-30 10:30:50 -04:00 committed by GitHub
parent 667c86eaae
commit 97a1c4a4f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@heroui/use-aria-multiselect": patch
---
fix `Select` accessibility label not including selected options (#5586)

View File

@ -144,7 +144,7 @@ export function useMultiSelect<T>(
valueId,
triggerProps["aria-labelledby"],
triggerProps["aria-label"] && !triggerProps["aria-labelledby"] ? triggerProps.id : null,
].join(","),
].join(" "),
onFocus(e: FocusEvent) {
if (state.isFocused) {
return;