diff --git a/comps/form/field/Field.tsx b/comps/form/field/Field.tsx index 3f5ff67..97e70d3 100755 --- a/comps/form/field/Field.tsx +++ b/comps/form/field/Field.tsx @@ -66,7 +66,7 @@ export const Field: FC = (arg) => { } if (local.prev_val !== fm.data[name]) { - if (typeof fm.data[name] === "object" && fm.deps.md) { + if (typeof fm.data[name] === "object") { const sfied = hashSum(prepForSum(fm.data[name])); if (sfied !== local.prev_val) { diff --git a/comps/form/field/table-edit/TableEdit.tsx b/comps/form/field/table-edit/TableEdit.tsx index 532fd81..07b29c9 100755 --- a/comps/form/field/table-edit/TableEdit.tsx +++ b/comps/form/field/table-edit/TableEdit.tsx @@ -258,6 +258,7 @@ export const TableEdit: FC<{ data={row} on_change={(_fm) => { fm.data[name][idx] = _fm.data; + fm.data[name] = [...fm.data[name]]; fm.render(); }} > diff --git a/comps/form/utils/init.tsx b/comps/form/utils/init.tsx index 4a0d1f3..c61931d 100755 --- a/comps/form/utils/init.tsx +++ b/comps/form/utils/init.tsx @@ -30,7 +30,7 @@ export const formInit = (fm: FMLocal, props: FMProps) => { toast.success(
{ toast.dismiss(); @@ -124,8 +124,10 @@ export const formInit = (fm: FMLocal, props: FMProps) => { } else { toast.success(
{}} + className={cx("c-cursor-pointer c-flex c-flex-col c-select-none")} + onClick={() => { + toast.dismiss(); + }} >
@@ -266,6 +268,8 @@ export const formInit = (fm: FMLocal, props: FMProps) => { fm.render(); } + console.clear(); + if (fm.props.sonar === "on" && !isEditor) { toast.dismiss();