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.

…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant