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

[t-input] 当鼠标悬浮在输入框时,通过回车事件手动失去焦点,不会触发失焦事件 #3639

Closed
ry0513 opened this issue Nov 24, 2023 · 1 comment · Fixed by #4032

Comments

@ry0513
Copy link

ry0513 commented Nov 24, 2023

tdesign-vue-next 版本

1.7.2

重现链接

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

重现步骤

点击重现链接,打开F12控制台查看输出

期望结果

当鼠标悬浮在输入框时,通过回车事件触发失去焦点后,会触发失焦事件

实际结果

当鼠标悬浮在输入框时,通过回车事件触发失去焦点后,不触发失焦事件

框架版本

3.3.4

浏览器版本

版本 119.0.6045.160(正式版本) (64 位)

系统版本

win11

Node版本

v18.18.0

补充说明

源码中(src/input/useInput.ts)当悬浮时阻止了事件

微信截图_20231225160553

Copy link
Contributor

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

@ry0513 ry0513 closed this as completed Dec 25, 2023
@ry0513 ry0513 changed the title [t-input] 手动失去焦点时不触发失焦事件 [t-input] 当鼠标悬浮在输入框时,通过回车事件手动失去焦点,不会触发失焦事件 Dec 25, 2023
@ry0513 ry0513 reopened this Dec 25, 2023
XBIsland added a commit to XBIsland/tdesign-vue-next that referenced this issue Mar 18, 2024
@github-actions github-actions bot mentioned this issue Mar 28, 2024
16 tasks
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

Successfully merging a pull request may close this issue.

1 participant