Skip to content

Commit

Permalink
Select: fix remote filter not showing dropdown issue (ElemeFE#1535)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder authored and QingWei-Li committed Dec 3, 2016
1 parent f508fd7 commit 06a739f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@
if (this.loading) {
return this.t('el.select.loading');
} else {
if (this.voidRemoteQuery) {
this.voidRemoteQuery = false;
return false;
}
if (this.remote && this.query === '') return false;
if (this.filterable && this.filteredOptionsCount === 0) {
return this.t('el.select.noMatch');
}
Expand Down Expand Up @@ -198,7 +195,6 @@
selectedLabel: '',
hoverIndex: -1,
query: '',
voidRemoteQuery: false,
bottomOverflowBeforeHidden: 0,
topOverflowBeforeHidden: 0,
optionsAllDisabled: false,
Expand Down Expand Up @@ -238,7 +234,6 @@
if (this.remote && typeof this.remoteMethod === 'function') {
this.hoverIndex = -1;
this.remoteMethod(val);
this.voidRemoteQuery = val === '';
this.broadcast('ElOption', 'resetIndex');
} else if (typeof this.filterMethod === 'function') {
this.filterMethod(val);
Expand Down Expand Up @@ -563,9 +558,6 @@
if (!this.multiple && (!this.value || Array.isArray(this.value))) {
this.$emit('input', '');
}
if (this.remote) {
this.voidRemoteQuery = true;
}
this.debouncedOnInputChange = debounce(this.debounce, () => {
this.onInputChange();
Expand Down

0 comments on commit 06a739f

Please sign in to comment.