Merged in release/2022-02-18 (pull request #394)

Resolve Date Picker Issues.
This commit is contained in:
Patrick Fic
2022-02-15 17:31:05 +00:00
2 changed files with 7 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ const r = ({ technician, state, activeStatuses, bodyshop }) => {
sortOrder: sortOrder:
state.sortedInfo.columnKey === "actual_in" && state.sortedInfo.order, state.sortedInfo.columnKey === "actual_in" && state.sortedInfo.order,
render: (text, record) => ( render: (text, record) => (
<ProductionListDate record={record} field="actual_in" /> <ProductionListDate record={record} field="actual_in" time/>
), ),
}, },
{ {
@@ -114,6 +114,7 @@ const r = ({ technician, state, activeStatuses, bodyshop }) => {
record={record} record={record}
field="scheduled_completion" field="scheduled_completion"
pastIndicator pastIndicator
time
/> />
), ),
}, },
@@ -165,6 +166,7 @@ const r = ({ technician, state, activeStatuses, bodyshop }) => {
record={record} record={record}
field="scheduled_delivery" field="scheduled_delivery"
pastIndicator pastIndicator
time
/> />
), ),
}, },

View File

@@ -20,9 +20,9 @@ export default function ProductionListDate({
const handleChange = (date) => { const handleChange = (date) => {
logImEXEvent("product_toggle_date", { field }); logImEXEvent("product_toggle_date", { field });
if (date.isSame(record[field] && moment(record[field]))) { // if (date.isSame(record[field] && moment(record[field]))) {
return; // return;
} // }
//e.stopPropagation(); //e.stopPropagation();
updateAlert({ updateAlert({
@@ -67,6 +67,7 @@ export default function ProductionListDate({
value={(record[field] && moment(record[field])) || null} value={(record[field] && moment(record[field])) || null}
onChange={handleChange} onChange={handleChange}
format="MM/DD/YYYY" format="MM/DD/YYYY"
isDateOnly={!time}
/> />
{time && ( {time && (
<TimePicker <TimePicker