Commit 549b99c4 authored by Mahëd Benzerga's avatar Mahëd Benzerga
Browse files

correctif espace dropdown

parent f321827a
......@@ -50,8 +50,9 @@ export default {
},
computed: {
filteredAcademies() {
const spacePattern = /\s+/g;
return this.input !== '' ? this.academies.filter((academie) => {
return academie.name.toLowerCase().indexOf(this.input.toLowerCase()) !== -1
return academie.name.toLowerCase().replace(spacePattern, '').indexOf(this.input.toLowerCase().replace(spacePattern, '')) !== -1
}) : this.academies
},
isShown: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment