Skip to content

Commit

Permalink
Update element types.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouder committed Jun 26, 2024
1 parent a3a6b67 commit 2cd0601
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export const DatePicker = ({
const datePickerRef = useRef<HTMLDivElement>(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;
Expand Down

0 comments on commit 2cd0601

Please sign in to comment.