diff --git a/packages/lab/src/date-picker/DatePickerTrigger.tsx b/packages/lab/src/date-picker/DatePickerTrigger.tsx index 8a76aab650..6b6a1e651a 100644 --- a/packages/lab/src/date-picker/DatePickerTrigger.tsx +++ b/packages/lab/src/date-picker/DatePickerTrigger.tsx @@ -21,16 +21,19 @@ export const DatePickerTrigger = forwardRef< const { children, className, ...rest } = props; const { - state: { open, floatingUIResult }, - helpers: { getReferenceProps, setOpen }, + state: { floatingUIResult }, + helpers: { getReferenceProps }, } = useDatePickerOverlay(); - const inputRef = useForkRef(ref, floatingUIResult?.reference); + const triggerRef = useForkRef( + ref, + floatingUIResult?.reference, + ); return (
{children}