aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2023-04-27 13:20:52 -0400
committermehekj <mehek.jethani@gmail.com>2023-04-27 13:20:52 -0400
commitb82a909a63a6de414d075735453240ebc02f5aa3 (patch)
tree07328a66dd3f5172a2f19c7c5ae1c0fe6cf403bc /src/client/views/collections/collectionSchema/SchemaRowBox.tsx
parentbc550e43b6042176cf59f04cbff51e1b21adaa8a (diff)
fixed editing schema cells with keyboard only
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaRowBox.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaRowBox.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
index f5a16cec0..9864820a3 100644
--- a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
@@ -28,6 +28,8 @@ export class SchemaRowBox extends ViewBoxBaseComponent<FieldViewProps>() {
return vpath.length > 1 ? (vpath[vpath.length - 2].ComponentView as CollectionSchemaView) : undefined;
}
+ schemaViewFunc = () => this.schemaView;
+
@computed get schemaDoc() {
return this.props.DocumentView?.().props.docViewPath().lastElement()?.rootDoc;
}
@@ -124,11 +126,11 @@ export class SchemaRowBox extends ViewBoxBaseComponent<FieldViewProps>() {
key={key}
Document={this.rootDoc}
col={index}
- schemaView={this.schemaView}
+ schemaView={this.schemaViewFunc}
fieldKey={key}
columnWidth={this.schemaView?.displayColumnWidths[index] ?? CollectionSchemaView._minColWidth}
isRowActive={this.props.isContentActive}
- setColumnValues={(field, value) => this.schemaView?.setColumnValues(field, value) ?? false}
+ // setColumnValues={(field, value) => this.schemaView?.setColumnValues(field, value) ?? false}
/>
))}
</div>