Skip to content

Commit

Permalink
fix(DatePicker): fix undefined prefix (#13853)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tw15egan and kodiakhq[bot] authored May 25, 2023
1 parent 782f92d commit e0fbf83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/DatePicker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
},
Expand Down

0 comments on commit e0fbf83

Please sign in to comment.