From 455f164d0250e9c15d1b700ef719996d23e9bee9 Mon Sep 17 00:00:00 2001 From: Keirua Date: Mon, 27 Jan 2020 16:47:32 +0100 Subject: [PATCH] Detail the reason why we include the search term in the results Co-Authored-By: Pierre de La Morinerie --- app/javascript/new_design/select2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/javascript/new_design/select2.js b/app/javascript/new_design/select2.js index 8db01fe6f..ca55d1dd9 100644 --- a/app/javascript/new_design/select2.js +++ b/app/javascript/new_design/select2.js @@ -127,6 +127,8 @@ const adresseOptions = { text: label, geometry })); + // Allow the user to select an arbitrary address missing from the results, + // by adding the plain-text query to the list of results. r.unshift({ id: data.query, text: data.query }); return { results: r