We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fc2837 commit dd1df32Copy full SHA for dd1df32
src/Components/forms/inputs/AutoFillDropDown.js
@@ -13,11 +13,8 @@ const AutoFillDropDown = ({
13
const filteredEmployers = arrayList.filter(item => {
14
const searchTerm = value.toLowerCase()
15
const employer = item.name.toLowerCase()
16
- const matchSearch =
17
- value.length === 1
18
- ? employer.includes(searchTerm)
19
- : employer.startsWith(searchTerm)
20
- return searchTerm && matchSearch && employer !== searchTerm
+ const matchSearch = employer.includes(searchTerm)
+ return searchTerm && matchSearch
21
})
22
const employerSorter = (a, b) => {
23
const aIndex = a.name.toLowerCase().indexOf(value.toLowerCase())
0 commit comments