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

[Select 选择器] 过滤选项后键盘上下键与Enter键无法正常选取值 #3605

Closed
wilonjiang opened this issue Nov 15, 2023 · 2 comments
Labels
🐞 bug Something isn't working to be published to be published

Comments

@wilonjiang
Copy link
Contributor

tdesign-vue-next 版本

1.6.8

重现链接

https://stackblitz.com/edit/phaz5f-e1ssl4?file=src%2Fdemo.vue

重现步骤

BUG:enter选择选项与hover状态不符

  1. 展开下拉框,上下键移动到”大数据“选项,按enter键选中
  2. 再次展开下拉框,输入“1”,过滤下拉选项
  3. 上下键移动过程中,hover状态不会按顺序移动
  4. 上下键移动到任意选项,按enter键选中
  5. 此时Select选中值不是当前hover的选项
  6. 点击选项不会出现上述问题

期望结果

  1. 展开下拉框,上下键移动到”大数据“选项,按enter键选中
  2. 再次展开下拉框,输入“1”,过滤下拉选项
  3. 此时上下键移动应按顺序移动
  4. 上下键移动到任意选项,按enter键选中选项后,Select组件值应为当前hover状态的选项

实际结果

  1. 展开下拉框,上下键移动到”大数据“选项,按enter键选中
  2. 再次展开下拉框,输入“1”,过滤下拉选项
  3. 此时上下键操作选项,部分情况下hover状态未按顺序移动,存在跳过的情况一些选项通过键盘上下移动永远无法获得hover状态
  4. 上下键移动到任意选项,按enter键选中选项后,Select组件值与当前hover状态的选项不符

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

Node(v16.15.0)

补充说明

No response

Copy link
Contributor

👋 @wilonjiang,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn
Copy link
Collaborator

uyarn commented Dec 8, 2023

fixed 1.7.1

@uyarn uyarn closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working to be published to be published
Projects
None yet
Development

No branches or pull requests

2 participants