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

Date range problem #60

Open
JoelTwilo opened this issue Mar 15, 2017 · 1 comment
Open

Date range problem #60

JoelTwilo opened this issue Mar 15, 2017 · 1 comment

Comments

@JoelTwilo
Copy link

JoelTwilo commented Mar 15, 2017

Hi, I'm having a problem with the calendar. I'm using it as a date range picker but if I select a date in the first calendar it doesn't block out the date in the second calendar.

How would I achieve this behavior?

Code is;

$checkin.calendar({
        type: 'date',
        endCalendar: $checkout,
        minDate: new Date(),
        formatter: {
            date: handler.dateFormatter
        },
        onChange: function(date, text){
            searchQuery.checkin = text;
        }
    });

    $checkout.calendar({
        type: 'date',
        startCalendar: $checkin,
        formatter: {
            date: handler.dateFormatter
        },
        onChange: function(date, text){
            searchQuery.checkout = text;
        }
    });
@mdehoog
Copy link
Owner

mdehoog commented Apr 9, 2017

It looks like you're doing the right thing. Could you please provide an example JSBin that reproduces the issue?

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

No branches or pull requests

2 participants