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

moment is not defined #180

Closed alexcroox closed 7 years ago

alexcroox commented 7 years ago

Am I correct in saying rome.js is bundled with moment and is exposed as a global? I'm using v2.1.22 and rome works fine, but as soon as I try to use the global moment() I get moment is not defined

rome($('input[name="out-date"]').get(0), {
    time: false,
    weekStart: 1,
    inputFormat: 'DD/MM/YYYY',
    min: moment()
});
alexcroox commented 7 years ago

For now I'm just using the standalone version and importing moment myself. This works fine as a workaround