aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-03-23 21:17:43 -0400
committerbobzel <zzzman@gmail.com>2023-03-23 21:17:43 -0400
commitbdeeb202d264b2710f21b816f4e05a29793aa78e (patch)
treee37aaad60f79c72903dad6961ff9a19c36f078b4 /src/client/views/collections/collectionSchema/SchemaRowBox.tsx
parent00150352f45e474705f7c4ebe7ce375e59b1f45a (diff)
fixed dragging schema rows. fixed not being able to click row buttons unless schema view is active.
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaRowBox.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaRowBox.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
index aa69e2b9c..87284be70 100644
--- a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
@@ -39,7 +39,7 @@ export class SchemaRowBox extends ViewBoxBaseComponent<FieldViewProps>() {
@action
onRowPointerDown = (e: React.PointerEvent) => {
if (!this.isContentActive()) return;
- setupMoveUpEvents(this, e, e => this.schemaView?.startDrag(e, this.rootDoc, this.rowIndex) ?? true, emptyFunction, emptyFunction, false);
+ setupMoveUpEvents(this, e, e => this.schemaView?.startDrag(e, this.rootDoc, this.rowIndex) ?? true, emptyFunction, emptyFunction);
};
onPointerEnter = (e: any) => {
@@ -99,6 +99,7 @@ export class SchemaRowBox extends ViewBoxBaseComponent<FieldViewProps>() {
className="row-menu"
style={{
width: CollectionSchemaView._rowMenuWidth,
+ pointerEvents: !this.isContentActive() ? 'none' : undefined,
}}>
<div
className="schema-row-button"