Merge pull request #231 from jamebal/dev

fix: 修复输入时按空格会清空输入框的问题
This commit is contained in:
jmal 2024-07-12 16:00:25 +08:00 committed by GitHub
commit fa9dfe3942
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1344,13 +1344,9 @@ export default {
}
// space
if (keyCode === 32) {
if (this.inputting || this.editingIndex !== -1) {
event.target.select()
} else {
if (this.selectRowData.length > 0 && !this.drawer) {
this.drawer = true
this.drawerShowTime = Date.now()
}
if (!this.inputting && this.selectRowData.length > 0 && !this.drawer) {
this.drawer = true
this.drawerShowTime = Date.now()
event.preventDefault()
event.stopPropagation()
}