Skip to content

[RFR] Fix Datepicker JS error#969

Merged
RobinBressan merged 3 commits intomasterfrom
fix_datepicker
Mar 21, 2016
Merged

[RFR] Fix Datepicker JS error#969
RobinBressan merged 3 commits intomasterfrom
fix_datepicker

Conversation

@fzaninotto
Copy link
Copy Markdown
Member

Closes #961

@fzaninotto fzaninotto changed the title Fix Datepicker JS error [RFR] Fix Datepicker JS error Mar 11, 2016
@fzaninotto
Copy link
Copy Markdown
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
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
Copy Markdown
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
Copy Markdown
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