Selaa lähdekoodia

fix datepicker

tripeur 4 vuotta sitten
vanhempi
commit
33d48a9b53
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      static/js/app.js

+ 1 - 1
static/js/app.js

@@ -12,7 +12,7 @@ const coinTop50 = {
       const elems = document.querySelectorAll('.datepicker');
       this.datepicker = M.Datepicker.init(elems, {onClose:()=>{
         this.date = this.datepicker.date.toISOString().slice(0,10)
-      }});
+      }})[0];
     },
     watch:{
       date(newDate,oldDate){