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

fix: input can not focus when hitting enter key #595

Merged
merged 1 commit into from Aug 17, 2021
Merged

Conversation

temper357
Copy link
Contributor

Closes #594

原因:键盘 enter key 按下时会触发 input 的 blur 操作,由于多 input 的存在,在 InputElement 中以静态变量形式保存了当前 focus 的 element,原逻辑 blur 时未将 focusElement 清空,导致下次选中 input 时 focusElement 与上一次相等,从而无法选中。

@temper357 temper357 added this to the 0.9 milestone Aug 16, 2021
@temper357 temper357 added this to In Progress in Browser Features via automation Aug 16, 2021
@wssgcg1213 wssgcg1213 merged commit 43af75a into main Aug 17, 2021
Browser Features automation moved this from In Progress to Done Aug 17, 2021
@wssgcg1213 wssgcg1213 deleted the fix/input-focus branch August 17, 2021 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Input 输入框编辑完后在键盘上按 enter 键输入框无法选中
3 participants