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

PickerField单选模式下,双击选项时会触发两次history.go(-1),使页面返回至上一个页面 #206

Open
1 of 2 tasks
air-eienniutau opened this issue Jun 10, 2018 · 0 comments

Comments

@air-eienniutau
Copy link

请按照以下模板填写

这是一个

  • 错误报告
  • 功能需求

SaltUI 版本

v3.8.49

浏览器、操作系统等环境信息

chrome

复现步骤

通过 https://salt-ui.github.io/components/button 页面切换访问PickerField,预览窗口中点击从本地获取 ,在弹出层中对任意选项右侧位置双击,预览窗口中的内容会返回到button的预览界面

https://github.com/salt-ui/saltui/blob/master/src/PickerField/SearchPanel.jsx#L400 中存在history.go(-1),而 src/PickerField/SearchResult.jsx#L126 位置的 onClick 触发没有限制,因此存在触发多次的情况

eternalsky added a commit that referenced this issue Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants