Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] Fix Datepicker JS error #969

Merged
merged 3 commits into from
Mar 21, 2016
Merged

[RFR] Fix Datepicker JS error #969

merged 3 commits into from
Mar 21, 2016

Conversation

fzaninotto
Copy link
Member

Closes #961

@fzaninotto fzaninotto changed the title Fix Datepicker JS error [RFR] Fix Datepicker JS error Mar 11, 2016
@fzaninotto
Copy link
Member Author

Switching to RFR

(already passes in Chrome)
RobinBressan added a commit that referenced this pull request Mar 21, 2016
@RobinBressan RobinBressan merged commit b8cb1b9 into master Mar 21, 2016
@RobinBressan RobinBressan deleted the fix_datepicker branch March 21, 2016 09:54
@@ -13,7 +13,7 @@ export default function maDateField() {
link: function(scope, element) {
var field = scope.field();
scope.name = field.name();
scope.rawValue = scope.value;
scope.rawValue = scope.value == null ? new Date() : (scope.value instanceof Date ? scope.value : new Date(scope.value));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A null value can not be displayed now with

scope.value == null ? new Date()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, already reported in #988

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

Successfully merging this pull request may close these issues.

3 participants