From f61e3afbf0104e5b080e6dad46c76d75ff5d0219 Mon Sep 17 00:00:00 2001 From: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> Date: Thu, 19 Oct 2023 15:14:46 -0400 Subject: [PATCH] HPCC-30278 ECL Watch v9 fix clear datetime-local filter fields Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> --- esp/src/src-react/components/forms/Fields.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/esp/src/src-react/components/forms/Fields.tsx b/esp/src/src-react/components/forms/Fields.tsx index 9f394b0aacc..54bffdaf2a6 100644 --- a/esp/src/src-react/components/forms/Fields.tsx +++ b/esp/src/src-react/components/forms/Fields.tsx @@ -902,6 +902,7 @@ export function createInputs(fields: Fields, onChange?: (id: string, newValue: a label: field.label, field: }); + const el = document.querySelector(`.ms-Modal.is-open #${fieldID}`); + if (el && field.value === "") { + el["value"] = field.value; + } break; case "link": field.href = field.href;