From 2cd0601803cbc821eac8694ebd8e16c957fa931f Mon Sep 17 00:00:00 2001 From: Johnny Bouder Date: Wed, 26 Jun 2024 12:34:31 -0400 Subject: [PATCH] Update element types. --- .../comet-uswds/src/components/date-picker/date-picker.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/comet-uswds/src/components/date-picker/date-picker.tsx b/packages/comet-uswds/src/components/date-picker/date-picker.tsx index 20e6dcc8..9c835699 100644 --- a/packages/comet-uswds/src/components/date-picker/date-picker.tsx +++ b/packages/comet-uswds/src/components/date-picker/date-picker.tsx @@ -53,10 +53,10 @@ export const DatePicker = ({ const datePickerRef = useRef(null); useLayoutEffect(() => { - const datePickerElement = datePickerRef.current as HTMLInputElement; + const datePickerElement = datePickerRef.current as HTMLDivElement; const datePickerWrapper = datePickerElement.querySelector( '.usa-date-picker__wrapper', - ) as HTMLInputElement; + ) as HTMLDivElement; if (!datePickerWrapper) datePicker.on(datePickerElement); const externalInput = datePicker.getDatePickerContext(datePickerElement).externalInputEl;