Skip to content

Commit ce674a6

Browse files
committed
fix(select): fix screen reader read value twice
1 parent 2564dbe commit ce674a6

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

packages/vuetify/src/components/VAutocomplete/VAutocomplete.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ export const VAutocomplete = genericComponent<new <
603603
return (
604604
<div
605605
key={ item.value }
606+
aria-hidden="true"
606607
class={[
607608
'v-autocomplete__selection',
608609
index === selectionIndex.value && [

packages/vuetify/src/components/VCombobox/VCombobox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ export const VCombobox = genericComponent<new <
650650
return (
651651
<div
652652
key={ item.value }
653+
aria-hidden="true"
653654
class={[
654655
'v-combobox__selection',
655656
index === selectionIndex.value && [

packages/vuetify/src/components/VSelect/VSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ export const VSelect = genericComponent<new <
575575
if (hasSlot && !slotContent) return undefined
576576

577577
return (
578-
<div key={ item.value } class="v-select__selection">
578+
<div key={ item.value } class="v-select__selection" aria-hidden="true">
579579
{ hasChips ? (
580580
!slots.chip ? (
581581
<VChip

0 commit comments

Comments
 (0)