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

When I open datetime-picker in header always showen one date and time. #86

Closed
dihar opened this issue Sep 8, 2016 · 1 comment
Closed
Labels

Comments

@dihar
Copy link

dihar commented Sep 8, 2016

Everytime I open datetime, I see one date 10th Jan 2015, but selected another.

Always in open I see:
screen shot 2016-09-08 at 13 16 49
I added default and value configs, but nothing didn't change.

var startPicker = new MaterialDatePicker({
    default: moment(),
    value: moment()
});

Thanks!

@Jivings
Copy link
Contributor

Jivings commented Oct 13, 2016

Ah oops I think I introduced a bug that means the picker wont set it's default values when you open it. As a work around if you set the date and time to something else then set it back then it should work.

Or you can have a look at the code. The problem is here.

Because this.value is already the default, it is the same as m, so nothing happens.

@Jivings Jivings added the bug label Oct 13, 2016
@joews joews closed this as completed in 5313258 Jan 17, 2017
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