From e0fbf8339581bcb5142671fe14a58131f1e04417 Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Wed, 24 May 2023 21:18:01 -0400 Subject: [PATCH] fix(DatePicker): fix undefined prefix (#13853) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- 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 9e44e0bf750b..7195a17544e4 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); },