fix editors row ref

This commit is contained in:
shamsmosowi
2022-06-08 14:32:54 +10:00
parent 736ef14522
commit 45d8a317c7
5 changed files with 6 additions and 6 deletions

View File

@@ -272,7 +272,7 @@ export default function Table({
// const { columnKey, sourceRow, targetRows } = e;
// if (updateCell)
// targetRows.forEach((row) =>
// updateCell(row.ref, columnKey, sourceRow[columnKey])
// updateCell(row._rowy_ref, columnKey, sourceRow[columnKey])
// );
// return [];
// }}

View File

@@ -34,7 +34,7 @@ export default function withNullEditor(
value={get(row, column.key)}
name={column.name as string}
type={(column as any).type}
docRef={props.row.ref}
docRef={props.row._rowy_ref}
onSubmit={() => {}}
disabled={props.column.editable === false}
/>

View File

@@ -43,7 +43,7 @@ export default function withSideDrawerEditor(
value={get(row, column.key)}
name={column.name as string}
type={(column as any).type}
docRef={props.row.ref}
docRef={props.row._rowy_ref}
onSubmit={() => {}}
disabled={props.column.editable === false}
/>

View File

@@ -8,7 +8,7 @@ import ChipList from "@src/components/Table/formatters/ChipList";
import { get } from "lodash-es";
import { getLabel } from "./utils";
export const ConnectService = forwardRef(function ConnectService(
export const Connector = forwardRef(function Connector(
{ value, showPopoverCell, disabled, column }: IPopoverInlineCellProps,
ref: React.Ref<any>
) {
@@ -54,4 +54,4 @@ export const ConnectService = forwardRef(function ConnectService(
);
});
export default ConnectService;
export default Connector;

View File

@@ -118,7 +118,7 @@ export default function withPopoverCell(
column: props.column,
onSubmit: handleSubmit,
disabled: props.column.editable === false,
docRef: props.row.ref,
docRef: props.row._rowy_ref,
showPopoverCell,
ref: inlineCellRef,
};