fix(select): fix noMatchText error show (#1523)

* fix(select): Search and lose focus,then "No matching data" #1495

* fix(select): fix noMatchText error show

Co-authored-by: Ryan2128 <33176053+Ryan2128@users.noreply.github.com>
This commit is contained in:
Liu Shuiyuan 2021-02-26 23:47:34 +08:00 committed by GitHub
parent 8cdfe1c831
commit 4574058263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,6 +191,7 @@ export const useSelect = (props, states: States, ctx) => {
popper.value?.update?.()
if (props.filterable) {
states.filteredOptionsCount = states.optionsCount
states.query = props.remote ? '' : states.selectedLabel
if (props.multiple) {
input.value.focus()