Skip to content

Commit 0817cf1

Browse files
committed
Fix invalid propType defined in MonthSelect
1 parent f65d8d4 commit 0817cf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DateInput/MonthSelect.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import mergeClassNames from 'merge-class-names';
44
import { getYear, getMonthHuman } from '@wojtekmaj/date-utils';
55

66
import { formatMonth, formatShortMonth } from '../shared/dateFormatter';
7-
import { isMaxDate, isMinDate } from '../shared/propTypes';
7+
import { isMaxDate, isMinDate, isRef } from '../shared/propTypes';
88
import { safeMin, safeMax } from '../shared/utils';
99

1010
export default function MonthSelect({
@@ -70,7 +70,7 @@ MonthSelect.propTypes = {
7070
ariaLabel: PropTypes.string,
7171
className: PropTypes.string.isRequired,
7272
disabled: PropTypes.bool,
73-
inputRef: PropTypes.func,
73+
inputRef: isRef,
7474
locale: PropTypes.string,
7575
maxDate: isMaxDate,
7676
minDate: isMinDate,

0 commit comments

Comments
 (0)