From ecd8661869030fa86fef2ba78c59ff6f39cbc652 Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Mon, 22 May 2023 13:45:03 -0400 Subject: [PATCH] fix(DatePicker): fix undefined prefix --- packages/react/src/components/DatePicker/DatePicker.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react/src/components/DatePicker/DatePicker.tsx b/packages/react/src/components/DatePicker/DatePicker.tsx index 92f6047d22f6..61550734f790 100644 --- a/packages/react/src/components/DatePicker/DatePicker.tsx +++ b/packages/react/src/components/DatePicker/DatePicker.tsx @@ -529,7 +529,7 @@ const DatePicker = React.forwardRef(function DatePicker( return; } - const onHook = (_electedDates, _dateStr, instance, prefix) => { + const onHook = (_electedDates, _dateStr, instance) => { updateClassNames(instance, prefix); if (startInputField?.current) { startInputField.current.readOnly = readOnly; @@ -609,7 +609,7 @@ const DatePicker = React.forwardRef(function DatePicker( onReady: onHook, onMonthChange: onHook, onYearChange: onHook, - onOpen: (...args: [any, string, string, string]) => { + onOpen: (...args: [any, string, string]) => { onHook(...args); savedOnOpen(...args); },