mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [autocomplete] fix incorrect aria-controls value (#23350)
The aria-controls attribute was incorrectly set to the literal string 'id' instead of the actual listbox ID, breaking screen reader association.
This commit is contained in:
@@ -443,7 +443,7 @@ onMounted(() => {
|
||||
;[
|
||||
{ key: 'role', value: 'textbox' },
|
||||
{ key: 'aria-autocomplete', value: 'list' },
|
||||
{ key: 'aria-controls', value: 'id' },
|
||||
{ key: 'aria-controls', value: listboxId.value },
|
||||
{
|
||||
key: 'aria-activedescendant',
|
||||
value: `${listboxId.value}-item-${highlightedIndex.value}`,
|
||||
|
||||
Reference in New Issue
Block a user