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

Search组件在失去焦点的情况下不会回到默认状态 #2165

Closed
ty850454 opened this issue Nov 5, 2017 · 3 comments
Closed

Search组件在失去焦点的情况下不会回到默认状态 #2165

ty850454 opened this issue Nov 5, 2017 · 3 comments

Comments

@ty850454
Copy link

ty850454 commented Nov 5, 2017

步骤1,点击Search组件,进入文本输入状态
步骤2,清空内容
步骤3,点空白区域

Search组件依然在最上方,demo中就是如此

@airyland
Copy link
Owner

airyland commented Nov 5, 2017

点空白区域并不会改变定位,这是设计如此。点取消才会恢复状态。

@MrChen2016-08-27
Copy link

在自定义slot搜索结果的情况下,点击搜索结果列表无法回到默认状态,这种情况应该怎么解决呢

@hzc315579049
Copy link

步骤1,点击Search组件,进入文本输入状态
步骤2,清空内容
步骤3,点空白区域

Search组件依然在最上方,demo中就是如此

官方没提供此逻辑,但是你可以看下源码,其实你可以用 this.$refs.search.handleResultClick(item)来hack这个需求

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

4 participants