Skip to content

Commit

Permalink
fix(VDatePickerMonth): convert min/max to date for isAfter function
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Nov 16, 2023
1 parent 9d3eb14 commit 2faefa8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ export const VDatePickerMonth = genericComponent<VDatePickerMonthSlots>()({

const date = adapter.date(value)

if (props.min && adapter.isAfter(props.min, date)) return true
if (props.max && adapter.isAfter(date, props.max)) return true
if (props.min && adapter.isAfter(adapter.date(props.min), date)) return true
if (props.max && adapter.isAfter(date, adapter.date(props.max))) return true

if (Array.isArray(props.allowedDates)) {
return !props.allowedDates.some(d => adapter.isSameDay(adapter.date(d), date))
Expand Down

0 comments on commit 2faefa8

Please sign in to comment.