fix(components): 修复搜索回车不关闭弹框、点击无法跳转的问题 #467
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.
close #466
1、控制台报错是因为阻止默认事件有点问题,可能是事件传递在vue中有更新?我看只有里面的click会触发这个
enter
事件,所以直接移里面去做了2、除此之外回车触发跳转后弹窗会被重新打开,经过测试发现是
header
的按钮持续聚焦导致的,在按钮聚焦的时候只要在页面内按了回车都会导致按钮被触发点击事件,结果思考还是建议取消ButtonIcon
组件内按钮的可聚焦状态,这样在不影响现有功能的情况下,有利于减少某些页面内绑定了回车事件时可能出现的bug