Merge pull request #405 from betagouv/quickfix

🐛 répare l'autocomplete de selection de commune
pull/406/head
Johan Girod 2018-10-15 16:04:51 +02:00 committed by GitHub
commit b84f2f0a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ class Select extends Component {
optionRenderer={({ nom, departement }) =>
nom + ` (${departement?.nom})`
}
filterOptions={options => {
// Do no filtering, just return all options
return options
}}
placeholder="Entrez le nom de commune"
noResultsText="Nous n'avons trouvé aucune commune"
searchPromptText={null}