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

This commit is contained in:
jmal 2024-07-12 15:59:43 +08:00
parent b2e73dce4e
commit ba3686bf80

View File

@ -1344,11 +1344,9 @@ export default {
}
// space
if (keyCode === 32) {
if (!this.inputting) {
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()
}