Skip to content

Commit 53cea5b

Browse files
author
Kenneth Cheng
committed
avoid autocomplete if BS/Del
1 parent 5d61aea commit 53cea5b

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vue3-excel-editor",
33
"email": "[email protected]",
44
"description": "Vue3 plugin for displaying and editing the array-of-object in Excel style",
5-
"version": "1.0.26",
5+
"version": "1.0.27",
66
"main": "src/main.js",
77
"dependencies": {
88
"@vuepic/vue-datepicker": "^3.3.0",

src/VueExcelColumn.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ export default {
226226
textTransform: this.textTransform,
227227
228228
get autocomplete () {
229+
if (self.type === 'map' || self.type === 'select') return true
229230
return self._autocomplete === null ? self.$parent.autocomplete : self._autocomplete
230231
},
231232
set autocomplete (val) {

src/VueExcelEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2622,7 +2622,7 @@ export default defineComponent({
26222622
/* *** Autocomplete ****************************************************************************************
26232623
*/
26242624
async calAutocompleteList (force) {
2625-
if (!force && !this.currentField.autocomplete) return
2625+
if (!this.currentField.autocomplete) return
26262626
if (force || (this.inputBoxChanged && this.inputBox.value.length > 0)) {
26272627
if (typeof this.recalAutoCompleteList !== 'undefined') clearTimeout(this.recalAutoCompleteList)
26282628
const doList = async () => {

0 commit comments

Comments
 (0)