Merge pull request #11249 from 2betop/fix-dialog

fix: 修复动作配置会删除 preventDefault 属性的问题
This commit is contained in:
hsm-lv 2024-11-25 11:13:34 +08:00 committed by GitHub
commit 8eb9a667ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3312,7 +3312,7 @@ export const getEventControlConfig = (
} }
// 不加回来可能数据会丢失 // 不加回来可能数据会丢失
['drawer', 'dialog', 'args'].forEach(key => { ['drawer', 'dialog', 'args', 'preventDefault'].forEach(key => {
action[key] = action[key] ?? actionData?.[key]; action[key] = action[key] ?? actionData?.[key];
}); });