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

Clicking on month selection dropdown removes picker--opened class #158

Closed
commadelimited opened this issue Jun 26, 2013 · 1 comment
Closed

Comments

@commadelimited
Copy link

When the date picker has selectMonths true, clicking a month causes the picker--opened class to be removed from the calendar display. I've recorded a quick screencast which displays this behaviour:

http://screencast.com/t/36zPwZ2n

along with the code I'm using to implement the date picker.

$datePicker.pickadate({
    clear: '',
    min: new Date(),
    selectMonths: true,
    format: 'mmmm dd, yyyy',
    onSet: function(event) {
        // Make sure the user did not select a timestamp which occurs in
        // the past. Displays warning to user when it does.
        if (that.get('dateIsValid')) {
            that.set('messageDisplay', '');
        } else {
            that.set('messageDisplay', 'The scheduled date occurs in the past.');
        }
    }
});

I'm using the following versions:
picker.js: v3.0.4
date picker: v3.0.4

Chrome for Mac: Version 29.0.1547.3 dev
OS 10.7.5

@amsul
Copy link
Owner

amsul commented Jun 28, 2013

Ah I see.. it’s actually the picker--focused class that gets removed. The dates are still disabled - but the CSS presents it as not. A fix is coming soon..

@amsul amsul closed this as completed in fea3338 Jun 28, 2013
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

2 participants