From 6774bf2f6d05090250c108df91c7ac2c22b853f9 Mon Sep 17 00:00:00 2001 From: 2betop <2698393+2betop@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:52:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8A=A8=E4=BD=9C?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BC=9A=E5=88=A0=E9=99=A4=20preventDefault?= =?UTF-8?q?=20=E5=B1=9E=E6=80=A7=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor/src/renderer/event-control/helper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amis-editor/src/renderer/event-control/helper.tsx b/packages/amis-editor/src/renderer/event-control/helper.tsx index 57df3e9af..9d6462a84 100644 --- a/packages/amis-editor/src/renderer/event-control/helper.tsx +++ b/packages/amis-editor/src/renderer/event-control/helper.tsx @@ -3312,7 +3312,7 @@ export const getEventControlConfig = ( } // 不加回来可能数据会丢失 - ['drawer', 'dialog', 'args'].forEach(key => { + ['drawer', 'dialog', 'args', 'preventDefault'].forEach(key => { action[key] = action[key] ?? actionData?.[key]; });