longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

Unable to select month and/or day in inline picker #478

Closed irsi closed 4 years ago

irsi commented 4 years ago

Hello,

if I initialize picker with this options:

{
    inline: true,
    container: $('#calendar'),
    alwaysOpen: true,
    format: 'L',
    hoveringTooltip: false,
    monthSelect: true,
    yearSelect: true
}

— I can't select month and/or day in selects above calendar (which displays because monthSelect: true, yearSelect: true). After selecting different month or day — nothing happens.

I found out experimentally that if I remove the parameter container — selects work as expected, but without this parameter I can't position picker in right place.

irsi commented 4 years ago

I apologize, I found my mistake. This happens when initialized on the same element that is a container.