Skip to content

fix: 🤔 datepicker set min/max inconsistency due to date format parsing #2966

@smfonseca

Description

@smfonseca

Current behavior

The sd-datepicker component documents thatmin and max should be provided in local ISO format (YYYY‑MM‑DD), but internally it parses dates using a German‑style dot‑separated format (YYYY.MM.DD). Because of this mismatch,parseLocalISO returns null for valid ISO date strings and ignores whitespace, causing min and max to be ineffective.

Expected behavior

The component should accept and parse min and max in the documented ISO format, enforce the date range in the UI, and handle trimming. The internal logic should apply these constraints correctly, and optionally the properties could reflect to attributes so that dynamic changes are visible externally.

DoR

  • Item has business value
  • Item has been estimated by the team
  • Item is clear and well-defined
  • Item dependencies have been identified

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions