Skip to content

Commit

Permalink
fix(RangeCalendar): highlighted range same day calculation for max-va…
Browse files Browse the repository at this point in the history
…lue (#1465)
  • Loading branch information
epr3 authored Nov 29, 2024
1 parent 06bb0f2 commit 648d8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/radix-vue/src/RangeCalendar/useRangeCalendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function useRangeCalendarState(props: UseRangeCalendarProps) {
const start = isStartBeforeFocused ? props.start.value : props.focusedValue.value
const end = isStartBeforeFocused ? props.focusedValue.value : props.start.value

if (isSameDay(start.add({ days: 1 }), end)) {
if (isSameDay(start, end)) {
return {
start,
end,
Expand Down

0 comments on commit 648d8a3

Please sign in to comment.