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(components): 修复搜索回车不关闭弹框、点击无法跳转的问题 #467

Merged
merged 1 commit into from
Jun 1, 2024

Conversation

Azir-11
Copy link
Member

@Azir-11 Azir-11 commented Jun 1, 2024

close #466
1、控制台报错是因为阻止默认事件有点问题,可能是事件传递在vue中有更新?我看只有里面的click会触发这个enter事件,所以直接移里面去做了

2、除此之外回车触发跳转后弹窗会被重新打开,经过测试发现是header的按钮持续聚焦导致的,在按钮聚焦的时候只要在页面内按了回车都会导致按钮被触发点击事件,结果思考还是建议取消ButtonIcon组件内按钮的可聚焦状态,这样在不影响现有功能的情况下,有利于减少某些页面内绑定了回车事件时可能出现的bug

@honghuangdc honghuangdc merged commit 474134e into soybeanjs:main Jun 1, 2024
1 check passed
@honghuangdc
Copy link
Member

按钮的聚焦还是得保留,这个直接去掉修饰符 prevent 就行

@Azir-11
Copy link
Member Author

Azir-11 commented Jun 1, 2024

好的,那我把组件那边的去掉吧,放到header的各个搜索和主题配置那里,这两个会因为聚焦产生一些预期之外的反馈

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 this pull request may close these issues.

[Bug]: 搜索框点击菜单报错,无法跳转
2 participants