shubhadip / vuejs3-datepicker

vue 3 datepicker. supports disabling, highlighting of dates and programmatic access of date.
https://vuejs3-datepicker.netlify.app/
MIT License
69 stars 40 forks source link

Option: `input-class` is not getting recognized #92

Open silasjoisten opened 3 weeks ago

silasjoisten commented 3 weeks ago

In version 1.1.3 is the input-class option ignored.

<Datepicker
  v-model="state.purchaseDate"
  name="purchaseDate"
  input-class="block w-full rounded-md border-0 p-4 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-black sm:leading-6 cursor-pointer"
  format="dd.MM.yyyy"
  :monday-first="true"
  :disabled-dates="{ from: new Date() }"
/>

The problem lays in https://github.com/shubhadip/vuejs3-datepicker/blob/master/src/components/datepicker/DateInput.vue#L27-L32

PR is following.