Skip to content

Min/Max validators aren't working on Angular 20 #14

@vladyslavbelikov

Description

@vladyslavbelikov

In our app we have 2 datetime pickers that we're using as a date range filter.

For dateFrom control we have [max]="dateTo.value" and for dateTo control [min]="dateFrom.value".
For example we can set both controls to the same day but dateFrom time to 02:00AM and dateTo control to 01:00AM.
In this case dateFrom > dateTo but validators is not applied at all and control marked as valid with no errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions