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
Current behavior
The
sd-datepickercomponent documents thatminandmaxshould 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,parseLocalISOreturns null for valid ISO date strings and ignores whitespace, causing min and max to be ineffective.Expected behavior
The component should accept and parse
minandmaxin 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