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.
datepicker - initDate getting updated when navigating control #6636
Open
Description
The issues forum is NOT for support requests. It is for bugs and feature requests only.
Please read https://github.com/angular-ui/bootstrap/blob/master/CONTRIBUTING.md and search
existing issues (both open and closed) prior to opening any new issue and ensure you follow the instructions therein.
Bug description: As the user navigates the datepicker control, the initDate is updated. This causes issues if you use the the current date of one datepicker as the initDate of another.
Also, note how the Start Date control itself doesn't change, but the model value does.
Expected: initDate is essentially readonly.
Link to minimally-working plunker that reproduces the issue:
https://plnkr.co/edit/tvelT5r6ho59zcPzPvIH?p=preview
Steps to reproduce the issue:
As noted in the Plunker, simply navigate forward or backward by month in the End Date datepicker and note how the Start Date value changes.
Version of Angular, UIBS, and Bootstrap
Angular: 1.6.1
UIBS: 2.5.0
Bootstrap: 3.3.7
Metadata
Metadata
Assignees
Labels
No labels