mengxiong10 / vue2-datepicker

A datepicker / datetimepicker component for Vue2
https://mengxiong10.github.io/vue2-datepicker/index.html
MIT License
1.52k stars 406 forks source link

Datepicker defaulting to readonly #68

Closed SimetriaStudio closed 6 years ago

SimetriaStudio commented 6 years ago

Hello, I started using the vue2-datepicker on a project and I am getting a readonly version of the datepicker on a particular instance of the component. Which is really strange. I have a few other datepickers on the same vue file and they behave correctly, but this particular one does not, by default it makes it readonly="readonly".

Also, is there a way to pass an ID to the generated input field instead of me binding the ID to the parent DIV?

Here the component call: <datePicker v-bind:id="index" v-model="todayDate" type="datetime" format="yyyy-MM-dd HH:mm" lang="en"></datePicker>

mengxiong10 commented 6 years ago

The default is readonly. You can update to v1.9.0, and set the editable prop.

SimetriaStudio commented 6 years ago

Thank you...it worked perfectly!