最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

vue.js - Vuetify v-select: Screen reader announces previous item first when focusing on the next element - Stack Overflow

programmeradmin0浏览0评论

I am using Vuetify's component in my Vue 3 project. However, I am facing an issue with screen readers (tested with NVDA and VoiceOver). When a user selects an option and then moves focus to the next element (like a button), the screen reader first announces the previously selected item before announcing the next focused element.

<template>
  <v-app>
    <v-container>
    <button>Click me</button>
      <v-select
        label="Select"
        :items="['California', 'Colorado', 'Florida', 'Geia', 'Texas', 'Wyoming']"
      ></v-select>
      <button>test</button>
    </v-container>
  </v-app>
</template>

<script setup>
  import { ref } from 'vue'

  const msg = ref('Hello World!')
</script>

Observed Behavior: When using a screen reader (NVDA or VoiceOver), after selecting an item from and pressing Tab to move focus to the , the screen reader first announces the previously selected item before reading "test" (the button label).

This issue consistently happens with Vuetify's , but not with native elements.

Expected Behavior: The screen reader should directly read the label of the focused element (the button) without repeating the previously selected item.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论