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(select): 修复 select 组件带 filterable 属性时点两下才能关闭的问题 #160

Closed
wants to merge 3 commits into from

Conversation

palmcivet
Copy link

@palmcivet palmcivet commented Dec 31, 2021

Select 组件:Fixes #128palmcivet


brefore

Select 组件展开选项列表后,点击 选项 和 输入框的空白部分 应保持展开状态,点击 已输入部分 和 外部区域 应收起,而实际是在点击外部区域时,先触发 visible-change 再触发 blur,在判断时 focusing 仍为 true,导致点两次才关闭

after

通过 Popupvisible-change 事件拿到 trigger,来判断触发对象,是 document 则直接关闭选项列表

@geff1991
Copy link
Contributor

geff1991 commented Jan 3, 2022

这里我理解应该是统一改popup,而不是在select或者tree-select里改

@palmcivet
Copy link
Author

palmcivet commented Jan 4, 2022

我的理解是,启用了 filterableSelect 用到了 Input 组件,所以 Popup 的开关需要判断 focusing 的状态,问题是出在这里面,而其他场景是没问题的

这里我理解应该是统一改popup,而不是在select或者tree-select里改

@chaishi
Copy link
Collaborator

chaishi commented Jan 10, 2022

Popup 同学正在处理,我们等等看

@chaishi
Copy link
Collaborator

chaishi commented Feb 13, 2022

问题已修复,PR 关闭

@uyarn uyarn closed this Feb 24, 2022
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.

tree-select, select等filterable时,关闭弹出层需要在其他地方单击两下才行
4 participants