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

Datpicker Popup next month prematurely updates date model value #5441

Closed
mosleywm opened this issue Feb 8, 2016 · 5 comments
Closed

Datpicker Popup next month prematurely updates date model value #5441

mosleywm opened this issue Feb 8, 2016 · 5 comments

Comments

@mosleywm
Copy link

mosleywm commented Feb 8, 2016

This repros on the demo site http://angular-ui.github.io/bootstrap/#/datepicker v1.1.0 and higher.

Opening the datepicker popup and browsing the months without actually selecting a date updates the date model (see "Selected Date is:" change) . Click outside of the popup to close it and notice the Date model has been updated but the input still reflects the initial value.

After a date has been selected through the popup, browsing the months does not update the Date model (expected behavior).

@ian505c5
Copy link

I am seeing this as well, is this by design?

@icfantv
Copy link
Contributor

icfantv commented Feb 11, 2016

At first glance, this looks like a bug.

@wesleycho
Copy link
Contributor

This is definitely a bug, we need to fix this.

@ribizli
Copy link

ribizli commented Mar 16, 2016

Any workaround until the fix? I have a $watcher on the date, which is triggered (due to this bug) even if the user hasn't selected a date.

@wesleycho
Copy link
Contributor

The culprit is 2cb3bc2 - this commit must have exposed a bug that was hidden by the gc issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants