fix: 修复输入时按空格会清空输入框的问题

This commit is contained in:
jmal 2024-07-12 15:58:21 +08:00
parent 8158187a8d
commit b2e73dce4e

View File

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