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键后触发了focus事件而不是enter事件 #2525

Closed
C-puqing opened this issue Jun 19, 2023 · 3 comments · Fixed by #2694
Closed

[Select] 多选情况下按下Enter键后触发了focus事件而不是enter事件 #2525

C-puqing opened this issue Jun 19, 2023 · 3 comments · Fixed by #2694
Assignees
Labels
🐞 bug Something isn't working to be published fixed, not be published

Comments

@C-puqing
Copy link

重现链接

https://stackblitz.com/edit/ah7mtd?file=src%2Fdemo.vue

重现步骤

点击输入框后,按下【Enter】键即可在控制台观察到日志输出

期望结果

按下Enter后在控制台看到如下输出:
handleEnter: KeyboardEvent {isTrusted: true, key: 'Enter', code: 'Enter', location: 0, ctrlKey: false, …}

实际结果

实际输出:
handleFocus: [] KeyboardEvent {isTrusted: true, key: 'Enter', code: 'Enter', location: 0, ctrlKey: false, …}

Environment Info
相关版本 1.2.5
框架版本 / 基础库版本 Vue(2.6.14)
系统、浏览器 MacOs、Chrome(114.0.5735.106)
Node版本
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

♥️ 有劳 @geff1991 @skytt @uyarn 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @C-puqing

@uyarn uyarn added the 🐞 bug Something isn't working label Jul 11, 2023
@skytt
Copy link
Contributor

skytt commented Jul 12, 2023

Select 是基于 SelectInput 构建的,试了一下这个问题应该是在 SelectInput 事件上有误

@xiaosansiji xiaosansiji added the to be published fixed, not be published label Aug 15, 2023
LeeJim pushed a commit that referenced this issue Aug 17, 2023
* feat(menu-item): click事件参数增加value (#2689)

fix #2621

* feat: add KeyboardEvents to select; fix table some bugs (#2683)

* fix(table): virtual scroll default scroll bar height

* feat(checkbox): support Space checked

* feat(radio): support Space Keyboard to check

* fix(table): e.target.closest might not exist

* test: update snapshots

* feat(select): support keyboard selection

* feat(select): support keyboard

* feat(input): showInput with 0px width

* fix: remove unsued code

* test: update snapshots

* fix(table): drag sort invalid on lazyload

* feat: update common

* feat: update common

* fix(menu): menu的激活菜单项未发生变化时也会触发change (#2693)

fix #2688

* fix(select-input): 多选情况下按下Enter键后触发了focus事件而不是enter事件 (#2694)

fix #2525

* fix(ImageViewer): 前后浏览及关闭浏览重置图片状态 (#2685)

* fix(image-viewer): 前后浏览及关闭浏览重置图片状态

#2679

* fix(image-viewer): 清除关闭时图片状态

* Docs/affix treeselect (#2696)

* fix: affix offsetBottom/offsetTop doc

* fix: tree select keys doc

* fix(select): disable internal filter when remote search (#2699)

* chore: release/1.6.1 (#2692)

* feat: release 1.6.1

* feat: update common

* feat: update common

* feat: update common

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Dexter <52393227+dexterBo@users.noreply.github.com>
Co-authored-by: sheepluo <yaoyanhuoyi@qq.com>
Co-authored-by: sinbadmaster <40019023+sinbadmaster@users.noreply.github.com>
Co-authored-by: azhe <xiaosansiji@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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 fixed, not be published
Projects
None yet
4 participants