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

fix(datepicker): default to current date #5395

Merged
merged 1 commit into from
Feb 2, 2016

Conversation

wesleycho
Copy link
Contributor

  • When model is empty, default to current date

Fix in action here.

This fixes #5190.

@Foxandxss
Copy link
Contributor

That was weird code. LGTM.

@icfantv
Copy link
Contributor

icfantv commented Feb 2, 2016

weird is one word to use, yes...

@wesleycho wesleycho force-pushed the fix/datepicker-popup-model branch from 75e7ae4 to 358ad50 Compare February 2, 2016 21:50
wesleycho added a commit to wesleycho/bootstrap that referenced this pull request Feb 2, 2016
- When model is empty, default to current date

Closes angular-ui#5395
Fixes angular-ui#5190
@wesleycho wesleycho force-pushed the fix/datepicker-popup-model branch from 358ad50 to ca159c0 Compare February 2, 2016 21:51
wesleycho added a commit to wesleycho/bootstrap that referenced this pull request Feb 2, 2016
- When model is empty, default to current date

Closes angular-ui#5395
Fixes angular-ui#5190
@wesleycho
Copy link
Contributor Author

Looks like there are some unit tests that explicitly want this behavior - I need to do more research here.

@wesleycho wesleycho force-pushed the fix/datepicker-popup-model branch from ca159c0 to 9f2412a Compare February 2, 2016 22:13
wesleycho added a commit to wesleycho/bootstrap that referenced this pull request Feb 2, 2016
- When model is empty, default to current date

Closes angular-ui#5395
Fixes angular-ui#5190
@wesleycho
Copy link
Contributor Author

PR now good for review - turns out it was a different line that was the culprit.

- When model is empty, default to current date

Closes angular-ui#5395
Fixes angular-ui#5190
@wesleycho wesleycho force-pushed the fix/datepicker-popup-model branch from 9f2412a to 4b2ee0f Compare February 2, 2016 22:17
@icfantv
Copy link
Contributor

icfantv commented Feb 2, 2016

LGTM with the understanding that these attributes will be deprecated in favor of the config object.

@wesleycho wesleycho merged commit 4b2ee0f into angular-ui:master Feb 2, 2016
@wesleycho wesleycho deleted the fix/datepicker-popup-model branch February 2, 2016 22:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Date picker] Calendar not rendering when initDate is undefined
3 participants