mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
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:
parent
667c86eaae
commit
97a1c4a4f1
5
.changeset/selfish-pears-boil.md
Normal file
5
.changeset/selfish-pears-boil.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@heroui/use-aria-multiselect": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix `Select` accessibility label not including selected options (#5586)
|
||||||
@ -144,7 +144,7 @@ export function useMultiSelect<T>(
|
|||||||
valueId,
|
valueId,
|
||||||
triggerProps["aria-labelledby"],
|
triggerProps["aria-labelledby"],
|
||||||
triggerProps["aria-label"] && !triggerProps["aria-labelledby"] ? triggerProps.id : null,
|
triggerProps["aria-label"] && !triggerProps["aria-labelledby"] ? triggerProps.id : null,
|
||||||
].join(","),
|
].join(" "),
|
||||||
onFocus(e: FocusEvent) {
|
onFocus(e: FocusEvent) {
|
||||||
if (state.isFocused) {
|
if (state.isFocused) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user