From f6993b3800561abe12d2b1a78eec337fa1c8accb Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Mon, 16 Mar 2020 15:55:12 +0100 Subject: [PATCH] 2199 - Show list when multiple rows are found --- front/core/components/datalist/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/core/components/datalist/index.js b/front/core/components/datalist/index.js index 3ac787d46..684918a5f 100644 --- a/front/core/components/datalist/index.js +++ b/front/core/components/datalist/index.js @@ -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