Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Manually typed date and min/max datesΒ #6124

Open
@yannbertrand

Description

@yannbertrand

Bug description:

This can be demonstrated with the datepicker popup on the angular ui site by following the steps below: http://angular-ui.github.io/bootstrap/#/datepicker

  1. Ensure the min date option is turned on (min date should equal today)
  2. Type in yesterdays date to the datepicker-popup

This shows a red border around the inline datepicker (as it is flagged as ng-invalid-date) however the input box for the datepicker-popup is still valid.

On further investigation it seems that the ng-invalid-date attribute has been set against the popup part of datepicker and not against the input box. This causes issues because firstly, the user cannot see that the element is invalid and secondly the popup does not have a name property so I am unable to check validity from the ng-form (e.g. myForm.myDate.$invalid

Link to minimally-working plunker that reproduces the issue:

See http://stackoverflow.com/questions/23542354/angularui-datepicker-popup-manually-typed-date-and-min-max-dates

Version of Angular, UIBS, and Bootstrap

Angular: 1.5.5

UIBS: 0.14.3

Bootstrap: 3.3.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions