2199 - Show list when multiple rows are found
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-03-16 15:55:12 +01:00
parent 1dd335a216
commit f6993b3800
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(() => {
if (this.validSelection(this.field)) {
const rows = this.model.data;
if (this.validSelection(this.field) && rows.length === 1) {
this.refreshSelection();
this.destroyList();
} else