Skip to content

Commit

Permalink
HPCC-30278 ECL Watch v9 fix clear datetime-local filter fields
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Clements <[email protected]>
  • Loading branch information
jeclrsg committed Oct 26, 2023
1 parent 5c9ff99 commit f61e3af
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 f61e3af

Please sign in to comment.