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

Custom Format for datepicker combined with ngRequired causing issues with binding #4678

Closed
@codenewa

Description

@codenewa

Libraries:
Angular JS: v1.4.7
Angular JS animate: v1.4.7
Angualr ui: 0.14.2

Here's the plnkr

So far, I have seen this issue only when format is provided with uib-datepicker-popup and it also includes a ngRequired expression. As you can see in the plnkr, the date field disappears from the model.

So, the snippet will work properly if you remove
ng-required="data.config.dob.isRequired"
or, change
uib-datepicker-popup="MM/dd/yyyy" to uib-datepicker-popup

One more observation was that this affects all other datepickers on the page whether or not they have the format and ngRequired combination.

This might be related to: #4607

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