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

[Select]多选模式下搜索导致下拉内容滚动条回到初始位置 #801

Closed
1 task done
zhuscat opened this issue Jun 19, 2019 · 1 comment
Closed
1 task done
Assignees
Labels
🧐 Experience Make Fusion easy and robust to use

Comments

@zhuscat
Copy link

zhuscat commented Jun 19, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.15.6

Component

Select

Environment

macOS 10.14 (18A391) Google Chrome 74.0.3729.169

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 首先点击多选框,在输入框中输入关键词(如 1),然后删掉搜索的关键词
  2. 将下拉框往下滚动,随便选择一个选项
  3. 下拉框滚动条自动跳到最上面

PS:如果一开始不搜索,直接点击选择,则不会出现上述 BUG

@bindoon bindoon added the 🧐 Experience Make Fusion easy and robust to use label Jul 4, 2019
@bindoon
Copy link
Member

bindoon commented Jul 4, 2019

因为搜索后会把 hightLight 设置会第一个item,所以menu渲染会自动滚动到 hightLight 的元素上面!

@youluna youluna closed this as completed in 2e31d0a Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧐 Experience Make Fusion easy and robust to use
Projects
None yet
Development

No branches or pull requests

2 participants