aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-13 01:19:46 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-13 01:19:46 -0400
commitbd3170d3834c6ef9933813afc42f69df044d055b (patch)
treebc80f8e650133c7e47553399aa7418e265a7e5f2 /src/client/views/collections/collectionSchema/SchemaTableCell.tsx
parent60a4ccfe2ab6337c064da8a303336f1872f5e9a6 (diff)
cell highlighting from equations WORKS!
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaTableCell.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaTableCell.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
index 51555fa61..50ec2f978 100644
--- a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
@@ -60,7 +60,7 @@ export interface SchemaTableCellProps {
rootSelected?: () => boolean;
rowSelected: () => boolean;
isolatedSelection: [boolean, boolean];
- getCellRefs: (text: string) => any;
+ highlightCells: (text: string) => void;
}
function selectedCell(props: SchemaTableCellProps) {
@@ -175,6 +175,7 @@ export class SchemaTableCell extends ObservableReactComponent<SchemaTableCellPro
pointerEvents: this.lockedInteraction ? 'none' : pointerEvents,
}}>
<EditableView
+ highlightCells={this._props.highlightCells}
ref={r => selectedCell(this._props) && this._props.autoFocus && r?.setIsFocused(true)}
oneLine={this._props.oneLine}
allowCRs={this._props.allowCRs}
@@ -190,7 +191,6 @@ export class SchemaTableCell extends ObservableReactComponent<SchemaTableCellPro
}
const hasNoLayout = Doc.IsDataProto(fieldProps.Document) ? true : undefined; // the "delegate" is a a data document so never write to it's proto
const ret = Doc.SetField(fieldProps.Document, this._props.fieldKey.replace(/^_/, ''), value, hasNoLayout);
- this._props.getCellRefs(value);
this._props.finishEdit?.();
return ret;
}, 'edit schema cell')}