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

Datetime field no longer accepts null value #988

Closed
bobthekingofegypt opened this issue Mar 18, 2016 · 1 comment
Closed

Datetime field no longer accepts null value #988

bobthekingofegypt opened this issue Mar 18, 2016 · 1 comment
Assignees
Labels

Comments

@bobthekingofegypt
Copy link

Before updating to latest master you used to be able to have a non required datetime field and set its defaultValue to null.

After the update to latest ui-bootstrap you can't do this.

https://github.com/marmelab/ng-admin/blob/master/src/javascripts/ng-admin/Crud/field/datepickerPopup.js

This directive on the datepicker will take your null value and convert it to a new Date(null), then you end up with a 1970's date value in your datepicker.

@fzaninotto
Copy link
Member

True, that's a regression. Marking it as bug.

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

No branches or pull requests

2 participants