Skip to content

Conversation

GDamyanov
Copy link
Contributor

@GDamyanov GDamyanov commented Aug 25, 2025

In relation to #10487, extend the tests to check that ui5-switch, ui5-date-picker, ui5-file-uploader, ui5-daterange-picker, ui5-datetime-picker, ui5-time-picker and ui5-step-input correctly expose a "validity" property and related methods required by the Constraint Validation API, as well as are selectable using the :invalid CSS pseudo class.

@GDamyanov GDamyanov self-assigned this Aug 25, 2025
@GDamyanov GDamyanov changed the title chore: extend form-validity test for ui5-switch, ui5-date-picker and ui5-time-picker chore: extend form-validity test for ui5-switch, ui5-date-picker, ui5-file-uploader, ui5-daterange-picker, ui5-datetime-picker, ui5-time-picker and ui5-step-input Sep 1, 2025
@GDamyanov GDamyanov requested a review from didip1000 September 4, 2025 07:11
Copy link

cla-assistant bot commented Sep 9, 2025

CLA assistant check
All committers have signed the CLA.

@@ -288,6 +321,20 @@ class DateRangePicker extends DatePicker implements IFormInputElement {
return parts.length <= 2 && parts.every(dateString => super.isInValidRange(dateString));
}

isValidMin(value: string): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently theres a bug (also on the main branch) in the DateRangePicker where inputting a date less than the min date you will result in the error Cannot read properties of null (reading 'getTime') and then the validity results to true

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.

2 participants