Skip to content

Commit

Permalink
autocomplete for map using startsWith matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Cheng committed Jul 18, 2022
1 parent 645c509 commit 0925b27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vue3-excel-editor",
"email": "apple.6502@gmail.com",
"description": "Vue3 plugin for displaying and editing the array-of-object in Excel style",
"version": "1.0.10",
"version": "1.0.11",
"main": "src/main.js",
"dependencies": {
"@vuepic/vue-datepicker": "^3.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/VueExcelEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2631,7 +2631,7 @@ export default {
}
list.sort()
}
this.autocompleteSelect = list.findIndex(element => element.toUpperCase().includes(value))
this.autocompleteSelect = list.findIndex(element => element.toUpperCase().startsWith(value))
this.autocompleteInputs = list
const rect = this.currentCell.getBoundingClientRect()
this.lazy(() => {
Expand Down

0 comments on commit 0925b27

Please sign in to comment.