Skip to content

Commit

Permalink
fix: it should filter iff there is no visible-option
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest committed Apr 3, 2021
1 parent f16ed0e commit 3c46d53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ const VueSelect = {
blur()
}
const searchedOptions = computed(() => {
const hasSearchListeners = instance.vnode.props['onSearch:input'] || instance.vnode.props['onSearch:change']
return searchingInputValue.value && !hasSearchListeners
return searchingInputValue.value
? options.value.filter(option => (labelBy.value(option) + '').indexOf(searchingInputValue.value) > -1)
: undefined
})
Expand Down

0 comments on commit 3c46d53

Please sign in to comment.