소스 검색

fix datepicker

tripeur 4 년 전
부모
커밋
33d48a9b53
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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){