this.handleChange(date)}
- onChange={date => this.handleChange(date)}
- />;
+ return !this.props.isFocused ? {this._date ? Field.toString(this._date as Field) : "--"} :
+
+ this.handleChange(date)}
+ onChange={date => this.handleChange(date)}
+ />
+
}
}
--
cgit v1.2.3-70-g09d2
From d5030554055d7f11caba3d95f3d082dbf066f55c Mon Sep 17 00:00:00 2001
From: 0x85FB9C51 <77808164+0x85FB9C51@users.noreply.github.com>
Date: Wed, 21 Jul 2021 08:55:13 -0400
Subject: Revert "fixed date formatting"
This reverts commit d358e6952effeb933ab57e4b343d8f0886077d55.
---
.../collectionSchema/CollectionSchemaCells.tsx | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
(limited to 'src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx')
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx
index a8d901f4d..f75179cea 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx
@@ -351,16 +351,13 @@ export class CollectionSchemaDateCell extends CollectionSchemaCell {
//}
}
- // If the cell is not clicked on, render the date normally. Otherwise, render a date picker.
render() {
- return !this.props.isFocused ? {this._date ? Field.toString(this._date as Field) : "--"} :
-
- this.handleChange(date)}
- onChange={date => this.handleChange(date)}
- />
-
+ return !this.props.isFocused ? {this._date ? Field.toString(this._date as Field) : "--"} :
+ this.handleChange(date)}
+ onChange={date => this.handleChange(date)}
+ />;
}
}
--
cgit v1.2.3-70-g09d2