From bc73112e507d3e28b5d5356a777d8c0fde6157fd Mon Sep 17 00:00:00 2001 From: rizky Date: Thu, 28 Nov 2024 21:14:53 -0700 Subject: [PATCH] fixing baseform table edit --- comps/form/base/BaseForm.tsx | 6 +++++- comps/form/field/table-edit/TableEdit.tsx | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/comps/form/base/BaseForm.tsx b/comps/form/base/BaseForm.tsx index 0f2d87f..f666d65 100755 --- a/comps/form/base/BaseForm.tsx +++ b/comps/form/base/BaseForm.tsx @@ -14,7 +14,7 @@ export type BaseFormProps = { onSubmit?: (arg: { fm: FMLocal }) => Promise | boolean; onChange?: (fm: FMLocal, name: string, new_value: any) => any; children: ReactNode | ((arg: { fm: FMLocal }) => ReactNode); - tag?: "form" | "div"; + tag?: "form" | "div" | "blank"; }; export const BaseForm = >({ @@ -73,6 +73,10 @@ export const BaseForm = >({ } const toaster_el = document.getElementsByClassName("prasi-toaster")[0]; + if (tag === "blank") { + return child; + } + return ( {(form) => { return (