-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HPCC-30278 ECL Watch v9 fix clear datetime-local filter fields #17926
HPCC-30278 ECL Watch v9 fix clear datetime-local filter fields #17926
Conversation
https://track.hpccsystems.com/browse/HPCC-30278 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question
@@ -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} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would changing "defaultValue" here to "value" have fixed the issue also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It did not. Using "value" instead, the filter would have updated with the selected datetime on submit, but the input wouldn't display it.
@@ -910,6 +911,10 @@ export function createInputs(fields: Fields, onChange?: (id: string, newValue: a | |||
}} | |||
/> | |||
}); | |||
const el = document.querySelector(`#${fieldID}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeclrsg - Do you think we need to make this ID a little more unique? Or do the query at the form level?
Signed-off-by: Jeremy Clements <[email protected]>
a62be7f
to
f61e3af
Compare
Type of change:
Checklist:
Smoketest:
Testing: