You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
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:
It seems the root cause is that activeDate is set to initDate and since this is a reference type object (Date), any updates to activeDate also update initDate. And if initDate is the scope/model value of another control, then that other control's scope/model value is also updated.
Maybe because it's a reference type the other control doesn't get a watch fired?
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
The text was updated successfully, but these errors were encountered: