Skip to content

Conversation

@andrii-trush
Copy link
Contributor

  • Prevents a runtime crash when selecting a single-day range by guarding against event.end == null
    (avoids the error: Cannot set properties of undefined (setting 'hour')).
  • Updates Storybook and props documentation to reflect the actual API:
    modelValue uses @internationalized/date (DateValue) instances (or null) instead of ISO 8601 strings,
    as required by reka-ui.
  • Improves clear/reset behavior by distinguishing between null and { start: null, end: null }
    and only showing the clear button when a valid range is present.
andrii-trush and others added 2 commits January 12, 2026 17:16
…ange input and improve error handling

fix(DateRangePicker): prevent fatal error when end date is not set in calendar events
fix(DateRangePicker): update button click event to clear date range correctly only if dates exist
docs(DateRangePicker): update event handler description to reflect new range object structure and add granularity section in documentation
@jasonvarga jasonvarga changed the base branch from master to 6.x January 28, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants