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 多选+autoComplete 时,重新拉取的问题 #516

Merged
merged 1 commit into from Apr 1, 2020
Merged

修复 Select 多选+autoComplete 时,重新拉取的问题 #516

merged 1 commit into from Apr 1, 2020

Conversation

RickCole21
Copy link
Contributor

Bug 场景

在Select 配置multiple+autoComplete 时,输入搜索内容触发autoComplete后,勾选任意项,会再次触发autoComplete并清空term参数值,导致当前options变化。

Bug 原因

handleStateChange中判断勾选项后,拉取
image

解决方案

  • 单选时清空term是有意义的
  • 所以只判断:在多选的时候,保持当前options,不重新拉取
    image

@2betop 2betop merged commit aa98610 into baidu:master Apr 1, 2020
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.

None yet

2 participants