Merge branch '2199-client_create_postcode' of verdnatura/salix into dev
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-03-17 10:01:59 +00:00 committed by Gitea
commit 8f30f55b65
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ export default class Datalist extends Textfield {
} }
return this.model.applyFilter(filter).then(() => { return this.model.applyFilter(filter).then(() => {
if (this.validSelection(this.field)) { const rows = this.model.data;
if (this.validSelection(this.field) && rows.length === 1) {
this.refreshSelection(); this.refreshSelection();
this.destroyList(); this.destroyList();
} else } else