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

input[type="date"] validity doesn't change when min/max change #6755

Closed

Description

@scottopherson

While creating the jsfiddle example in my previous issue, I noticed that the validity of the date input doesn't get updated when the values of min/max change.

http://jsfiddle.net/va4kb/2/

Might just need a fix similar to: #6369

Edit:
Though, the validity of the date input does get updated if you make a change to the input after min/max are changed.

Activity

  1. changed the title [-]input[type="date"] min/max as date objects[/-] [+]input[type="date"] validity doesn't change when min/max change[/+] on Mar 19, 2014
  2. added this to the milestone on Mar 20, 2014
  3. matsko commented on Aug 28, 2014

    @matsko
    Contributor

    I've made some progress on this and my local code works for string-based date values (the first example in your demo). But the pure date object min/max value stuff doesn't work yet. I will resume the bug fix next week once I get someone to help me understand $interpolate (since that needs to be patched first).

  4. self-assigned this
    on Aug 28, 2014
  5. added 4 commits that reference this issue on Sep 3, 2014
    6160a84
    550289e
    4102ff1
    a17a1d5
  6. added a commit that references this issue on Sep 4, 2014
    088545c
  7. matsko commented on Sep 4, 2014

    @matsko
    Contributor

    This should now be working on master.

  8. matsko commented on Sep 4, 2014

    @matsko
    Contributor

    PS your example code should be max="{{ maxDt }}" and min="{{ minDt }}" (you forgot the curly brackets)

  9. matsko commented on Sep 4, 2014

    @matsko
    Contributor

    You're better off using ng-min and ng-max since the date won't be converted to string and back like what happens with min and max while using expressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions