0

我目前正在使用 syncfusion 的 SfDropDownList 来显示一些选项,并且我注意到在 windows narrator 上有一行显示“已选择,选择包含零项”。有一个元素被选中,并且有可供选择的选项。这是一个例子:

    <SfDropDownList aria-owns="list" aria-details="select skill" selected="@DropDownValue" aria-haspopup="listbox" aria-label="sports dropdown" role="listbox" TItem="GameFields" TValue="string" PopupHeight="auto" Width="auto" PopupWidth="auto" @bind-Value="@DropDownValue" DataSource="@Games">

        <DropDownListEvents TItem="GameFields" TValue="string" ></DropDownListEvents>
    <DropDownListFieldSettings HtmlAttributes="role=option"  Text="Text" Value="ID"></DropDownListFieldSettings>

</SfDropDownList>  

@code

        new GameFields(){ ID= "Game1", Text= "American Football", role="option"  },

        new GameFields(){ ID= "Game2", Text= "Badminton", role="option"  },

        new GameFields(){ ID= "Game3", Text= "Basketball", role="option"  },

        new GameFields(){ ID= "Game4", Text= "Cricket", role="option"  },

        new GameFields(){ ID= "Game5", Text= "Football", role="option"  },

        new GameFields(){ ID= "Game6", Text= "Golf", role="option"  },

        new GameFields(){ ID= "Game7", Text= "Hockey", role="option"  },

        new GameFields(){ ID= "Game8", Text= "Rugby", role="option" },
         
        new GameFields(){ ID= "Game9", Text= "Snooker", role="option"  },

        new GameFields(){ ID= "Game10", Text= "Tennis", role="option" },

检查是否有其他人经历过这个 + 可能知道零 / 选择甚至指的是什么?

4

0 回答 0