From 1b7d94f7c9c5b26d5b856d39e1133982a3186cc1 Mon Sep 17 00:00:00 2001 From: Rizky Date: Mon, 24 Jun 2024 15:38:30 -0700 Subject: [PATCH] fix --- comps/form/Form.tsx | 5 +++-- comps/form/typings.ts | 1 + comps/popup/PopUp.tsx | 4 ---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/comps/form/Form.tsx b/comps/form/Form.tsx index 4ecff47..0c238ce 100755 --- a/comps/form/Form.tsx +++ b/comps/form/Form.tsx @@ -14,7 +14,7 @@ const editorFormWidth = {} as Record; export { FMLocal } from "./typings"; export const Form: FC = (props) => { - const { PassProp, body, feature, sfd_field } = props; + const { PassProp, body, feature, sfd_field, style } = props; const fm = useLocal({ data: editorFormData[props.item.id] ? editorFormData[props.item.id].data @@ -167,7 +167,8 @@ export const Form: FC = (props) => { {toaster_el && createPortal(, toaster_el)}
= ({ on_close, open, child }) => { ref={(e) => (local.ref = e)} className="c-w-screen c-h-screen c-bg-transparent c-flex c-flex-row c-items-center c-justify-center" onClick={(e) => { - console.log({ e }); - console.log(local.ref, e.target); if (local.ref) { if (e.target === local.ref) { on_close(false); local.open = false; local.render(); - } else { - console.log("click inside popup"); } } }}