Collaborne / paper-date-picker-item

A Material Design item that shows a date and opens a date picker dialog on tap (Polymer)
https://www.webcomponents.org/element/Collaborne/paper-date-picker-item
Apache License 2.0
24 stars 13 forks source link

Reloading moment.js breaks other components #14

Closed fairsayan closed 7 years ago

fairsayan commented 7 years ago

Hi, in my app I load momentjs in my index.html:

    <script src="../bower_components/moment/min/moment-with-locales.min.js"></script>
    <script src="../bower_components/moment-timezone/builds/moment-timezone-with-data-2010-2020.min.js"></script>

because I need it in different pages. In one of them I use paper-date-picker-item, but after this page is loaded, the constructor moment.tz and all the others functions related with moment-timezone are undefined. I dug into this issue and I discovered that you call moment-element to provide another version of moment (without timezone). I commented the loading stuff in moment-element and now everything works fine.

I tried to put my Githubissues.

  • Githubissues is a development platform for aggregating issues.