fix: input can not focus when hitting enter key #595
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #594
原因:键盘 enter key 按下时会触发 input 的 blur 操作,由于多 input 的存在,在 InputElement 中以静态变量形式保存了当前 focus 的 element,原逻辑 blur 时未将 focusElement 清空,导致下次选中 input 时 focusElement 与上一次相等,从而无法选中。