Skip to content

Commit

Permalink
refactor: date picker util
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Apr 28, 2024
1 parent 0f8701e commit 700ae1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utilities/date-utils/src/assertion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function isDateDisabled(
minValue?: DateValue | null,
maxValue?: DateValue | null,
) {
return date.compare(startDate) < 0 || date.compare(endDate) > 0 || isDateInvalid(date, minValue, maxValue)
return isDateOutsideVisibleRange(date, startDate, endDate) || isDateInvalid(date, minValue, maxValue)
}

export function isDateUnavailable(
Expand Down

0 comments on commit 700ae1e

Please sign in to comment.