bevacqua / rome

:calendar: Customizable date (and time) picker. Opt-in UI, no jQuery!
https://bevacqua.github.io/rome
MIT License
2.91k stars 223 forks source link

Calendar still auto closes with autoClose set to false #171

Open sam-la opened 8 years ago

sam-la commented 8 years ago

When creating a new rome calendar picker, I can set the autoClose option to be false. The calendar will not auto close when clicking on a date in the month that the calendar opened with. However, when clicking on a date in a month that the calendar is not opened with, the calendar will still auto close even if the option is set to false.

For example, today is 8/1. Creating a simple rome calendar picker with autoclose rome(input, { autoClose: false }); and clicking on it for the first time will open August. Clicking any date in August will have the calendar open, but if you click for example July 31 or September 1, the calendar will auto close.

The calendar seems to not support localization. For example, if you set the calendar to use Arabic, selecting a date will cause a NaN error.

qmarcos commented 5 years ago

The same here, when selecting a day that is from other than current month, it ignores the autoClose option.