From dacfff22a9016cc3643eede015369f4287758230 Mon Sep 17 00:00:00 2001 From: Angela Cooney Date: Mon, 9 Dec 2024 12:20:22 -0500 Subject: [PATCH] Update services/ui-src/src/components/fields/DateField.tsx Co-authored-by: benmartin-coforma <126210497+benmartin-coforma@users.noreply.github.com> --- services/ui-src/src/components/fields/DateField.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/services/ui-src/src/components/fields/DateField.tsx b/services/ui-src/src/components/fields/DateField.tsx index d5ceff30..36ced899 100644 --- a/services/ui-src/src/components/fields/DateField.tsx +++ b/services/ui-src/src/components/fields/DateField.tsx @@ -53,7 +53,12 @@ export const DateField = (props: PageElementProps) => { value={displayValue} hint={parsedHint} errorMessage={errorMessage} - {...disabled} + /* + * Typescript hack. CmsdsDateField won't recognize + * passthrough props until @cmsgov/design-system^9.0.0 + * TODO: Unhack, to just `disabled={props.disabled}` + */ + {...{ disabled: props.disabled } } /> );