From 970e8e5cc4fa1ee8c47492b2baca0d00241addf0 Mon Sep 17 00:00:00 2001 From: Zach Date: Wed, 1 Nov 2017 15:22:31 -0600 Subject: [PATCH] Update Autocomplete.vue If you want a case insensitive match, you need to compare upper to upper or lower to lower. --- src/components/Autocomplete.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue index db6de94..2e2359a 100644 --- a/src/components/Autocomplete.vue +++ b/src/components/Autocomplete.vue @@ -45,7 +45,9 @@ export default { // Filtering the suggestion based on the input matches () { return this.suggestions.filter((obj) => { - return obj.city.indexOf(this.value) >= 0 + let city = obj.city.toUpperCase(); + let val = this.value.toUpperCase(); + return city.indexOf(val) >= 0 }) },