Skip to content

Commit c5cc378

Browse files
author
Kenneth Cheng
committed
Fixed the check type lengthLimit edit problem
1 parent 7714284 commit c5cc378

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-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.23",
5+
"version": "1.0.24",
66
"main": "src/main.js",
77
"dependencies": {
88
"@vuepic/vue-datepicker": "^3.3.0",

src/VueExcelEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ export default defineComponent({
14821482
else
14831483
if (this.currentField.allowKeys.indexOf(e.key.toUpperCase()) === -1) return e.preventDefault()
14841484
}
1485-
if (this.currentField.lengthLimit && this.inputBox.value.length >= this.currentField.lengthLimit) return e.preventDefault()
1485+
if (this.inputBoxShow && this.currentField.lengthLimit && this.inputBox.value.length >= this.currentField.lengthLimit) return e.preventDefault()
14861486
if (!this.inputBoxShow) {
14871487
if (this.currentField.type === 'select' || this.currentField.type === 'map') {
14881488
setTimeout(() => this.calAutocompleteList(true))

0 commit comments

Comments
 (0)