Skip to content

Commit

Permalink
Merge pull request #1309 from XiaoMi/hotfix/#1293
Browse files Browse the repository at this point in the history
fix: #1293
  • Loading branch information
solarjoker authored Nov 12, 2020
2 parents 4d3059f + a00a93b commit fe2196b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ const InternalSelect = (props) => {
if (dataSource && (autoload || keyword)) {
remoteSearch(keyword)
}
if (dataSource && keyword === '' && selectedItems.length > 0) {
setDropdownItems(cacheSelectItem)
}
}
// 重置下标
const resetFocusedIndex = () => {
Expand Down

0 comments on commit fe2196b

Please sign in to comment.