Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

datepicker: inconsistency between allowed dates in UI and text field #6887

@ademuri

Description

@ademuri

Commit 0e334cd fixed the issue where the validation for the datepicker was respecting the time component of the dates in md-min-date and md-max-date. However, the logic that decides whether to show a date as selectable in the popup still looks at the time component.

This means that e.g. for md-min-date="new Date('2015-05-02 12:00:00')", the date '2015-05-02' typed into the text field will be valid, but on the popup date picker, 2015-05-02 will not be enabled.

I'll send a PR shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions