fix(select): 修复 select 组件带 filterable 属性时点两下才能关闭的问题 #160
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.
Select 组件:Fixes #128 ,palmcivet
brefore
Select
组件展开选项列表后,点击 选项 和 输入框的空白部分 应保持展开状态,点击 已输入部分 和 外部区域 应收起,而实际是在点击外部区域时,先触发visible-change
再触发blur
,在判断时focusing
仍为true
,导致点两次才关闭after
通过
Popup
的visible-change
事件拿到trigger
,来判断触发对象,是document
则直接关闭选项列表