Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dropdown] alife/next@1.x 版本,Dropdown 和 Menu 一起使用时,弹出的菜单时,第一个选项默认显示为 hover 状态,且无法恢复,hover 其他选项时,第一个选项仍然是 hover 状态 #149

Closed
1 task
JudithHuang opened this issue Jan 3, 2019 · 2 comments
Assignees

Comments

@JudithHuang
Copy link

JudithHuang commented Jan 3, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

Component

TreeSelect Dropdown

Environment

和环境无关

Reproduction link

https://riddle.alibaba-inc.com/riddles/f2b6a306?mode=jsx

Steps to reproduce

见代码

@youluna youluna self-assigned this Jan 7, 2019
@youluna
Copy link
Member

youluna commented Jan 8, 2019

点击展开Dropdown后,弹层里第一个元素的默认选中态是为支持无障碍键盘导航默认聚焦的。

可以通过<Dropdown autoFocus={false}>禁用自动聚焦,这样不会有第一个元素的默认选中态,同时使用键盘访问dropdown时需要多切一次tab才能到弹层里。

将在下个Y位版本优化这里的逻辑,当通过键盘事件触发children展开时,才默认聚焦到弹层里。

@youluna
Copy link
Member

youluna commented Jan 25, 2019

1.12.0 fixed

@youluna youluna closed this as completed Jan 25, 2019
@jdkahn jdkahn changed the title alife/next@1.x 版本,Dropdown 和 Menu 一起使用时,弹出的菜单时,第一个选项默认显示为 hover 状态,且无法恢复,hover 其他选项时,第一个选项仍然是 hover 状态 [Dropdown] alife/next@1.x 版本,Dropdown 和 Menu 一起使用时,弹出的菜单时,第一个选项默认显示为 hover 状态,且无法恢复,hover 其他选项时,第一个选项仍然是 hover 状态 Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants