tamble / jquery-ui-daterangepicker

A JQuery UI based date range picker.
MIT License
184 stars 110 forks source link

No future date next arrow #74

Closed theeedannyd closed 7 years ago

theeedannyd commented 7 years ago

Hi,

I cant seem to select future dates. The arrow disappears when I am shown todays month in the far right date picker.

I have tried setting max dates etc in datepickerOptions.

What am I doing wrong exactly?

$("#txt-date-range-picker").daterangepicker({
    datepickerOptions: {
        numberOfMonths: 2,
        initialText: 'Select date range...',
        datepickerOptions: {
            minDate: 0,
            maxDate: null
        }
    }
});
op16 commented 7 years ago
  1. You specified datepickerOptions twice. The second (nested) occurrence is ignored.
  2. initialText is not a date picker option, but daterangepicker option, so it should go one level up. See http://tamble.github.io/jquery-ui-daterangepicker/#options
theeedannyd commented 7 years ago

My humble apologies, I did not notice that. Thanks for your help