Skip to content

[Select]初始化 value 与 highlight 不同 #3757

Closed
@guoyunhe

Description

@guoyunhe

Component

Select

Reproduction link

https://riddle.alibaba-inc.com/riddles/d904ded9

Steps to reproduce

初始化 Value 为 dataSource 的第二项,打开下拉,勾选的是第二项,但是 highlight 的是第一项,导致键盘导航并不是从当前值开始的。

image

但是在 ant design 中,初始位置和初始值是一致的,都是第二项,键盘导航从初始值位置开始:

image

这样实现更符合交互直觉,更具有确定性

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions