zhb 1 месяц назад
Родитель
Сommit
6fa479264f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      uni_modules/uni-combox/components/uni-combox/uni-combox.vue

+ 1 - 1
uni_modules/uni-combox/components/uni-combox/uni-combox.vue

@@ -102,7 +102,7 @@ export default {
 		},
 		filterCandidates() {
 			return this.candidates.filter((item) => {
-				return item.toString().indexOf(this.inputVal) > -1
+				return item.toString().toLowerCase().includes(this.inputVal.toLowerCase())
 			})
 		},
 		filterCandidatesLength() {