Skip to content

Commit

Permalink
Merge pull request #17926 from jeclrsg/hpcc-30278-clear-datetime-loca…
Browse files Browse the repository at this point in the history
…l-fields

HPCC-30278 ECL Watch v9 fix clear datetime-local filter fields
  • Loading branch information
GordonSmith authored Oct 27, 2023
2 parents e3d7c24 + f61e3af commit 4c39442
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions esp/src/src-react/components/forms/Fields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,7 @@ export function createInputs(fields: Fields, onChange?: (id: string, newValue: a
label: field.label,
field: <input
key={fieldID}
id={fieldID}
type="datetime-local"
name={fieldID}
defaultValue={field.value}
Expand All @@ -910,6 +911,10 @@ export function createInputs(fields: Fields, onChange?: (id: string, newValue: a
}}
/>
});
const el = document.querySelector(`.ms-Modal.is-open #${fieldID}`);
if (el && field.value === "") {
el["value"] = field.value;
}
break;
case "link":
field.href = field.href;
Expand Down

0 comments on commit 4c39442

Please sign in to comment.