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

The "defaultDate" option appears to be ignored #78

Open
nwhittaker opened this issue Apr 28, 2016 · 1 comment
Open

The "defaultDate" option appears to be ignored #78

nwhittaker opened this issue Apr 28, 2016 · 1 comment

Comments

@nwhittaker
Copy link

nwhittaker commented Apr 28, 2016

Set the defaultDate option on the {{bs-datetimepicker}} component to a valid Date.

Observed: No visible difference from a datetime picker where now defaultDate option is defined.

Expected: It's not entirely clear from the docs, but I think I'd expect the default date to be pre-selected in the datetime picker -- but think any placeholder text should remain visible in the input field(?).

@nwhittaker
Copy link
Author

nwhittaker commented Apr 28, 2016

I believe it has something to do with the line at https://github.com/plusacht/ember-bootstrap-datetimepicker/blob/v1.0.4/addon/components/bs-datetimepicker.js#L82.

81    if (this.getAttr('date') === undefined) {
82      dateTimePicker.date(null);
83    } else {
84      dateTimePicker.date(this.getAttr('date'));
85    }

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

No branches or pull requests

1 participant