[Vuejs]-Vue material datepicker changing format after clearing the date

0👍

The answer was simply to add :md-model-type="String" to the DatePicker as described on the bottom of the docs (https://vuematerial.io/components/datepicker/):

   <div class="date-picker">
       <md-datepicker v-model="monthStart" md-immediately :md-model-type="String">
          <label>From</label>
       </md-datepicker>
    </div>

Leave a comment