aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2023-03-01 17:53:56 -0500
committermehekj <mehek.jethani@gmail.com>2023-03-01 17:53:56 -0500
commit9853c1e3ca1c3a1d2da210118b927adc559e67fa (patch)
treef8dc9f8c92a8f8cea02779bfe1952b73c0666019 /src/client/views/collections/collectionSchema/SchemaRowBox.tsx
parent4137fa5fedae84aa781f3ba22ddfb2410a0cad9a (diff)
override onclick script
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaRowBox.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaRowBox.tsx20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
index d6a00966d..5de9fdf5c 100644
--- a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
@@ -42,13 +42,13 @@ export class SchemaRowBox extends ViewBoxBaseComponent<FieldViewProps>() {
onRowPointerDown = (e: React.PointerEvent) => {
e.stopPropagation();
- setupMoveUpEvents(
- this,
- e,
- e => this.schemaView?.startDrag(e, this.rootDoc, this._ref!, this.rowIndex) ?? true,
- emptyFunction,
- e => this.schemaView?.selectRow(e, this.rootDoc, this._ref!, this.rowIndex)
- );
+ // setupMoveUpEvents(
+ // this,
+ // e,
+ // e => this.schemaView?.startDrag(e, this.rootDoc, this.rowIndex) ?? true,
+ // emptyFunction,
+ // e => this.schemaView?.selectRow(e, this.rootDoc, this.rowIndex)
+ // );
};
onPointerEnter = (e: any) => {
@@ -97,9 +97,9 @@ export class SchemaRowBox extends ViewBoxBaseComponent<FieldViewProps>() {
? { height: CollectionSchemaView._rowHeight, backgroundColor: Colors.LIGHT_BLUE, pointerEvents: this.schemaView?.props.isContentActive() ? 'all' : undefined /*, opacity: this.props.dragging ? 0.5 : 1 */ }
: { height: CollectionSchemaView._rowHeight, pointerEvents: this.schemaView?.props.isContentActive() ? 'all' : undefined }
}
- onPointerDown={this.onRowPointerDown}
- onPointerEnter={this.onPointerEnter}
- onPointerLeave={this.onPointerLeave}
+ // onPointerDown={this.onRowPointerDown}
+ // onPointerEnter={this.onPointerEnter}
+ // onPointerLeave={this.onPointerLeave}
ref={(row: HTMLDivElement | null) => {
row && this.schemaView?.addRowRef(this.rootDoc, row);
this._ref = row;