vue-datepicker-ui icon indicating copy to clipboard operation
vue-datepicker-ui copied to clipboard

[Bug] Vue 2.6.0 disabled-start-date does not work in range mode

Open SArrueLorca opened this issue 1 year ago • 0 comments

I inherited a project made with Vue 2.6.0, where i tried to use disabled-start-date in range mode, but it doesn't work. disabled-end-date works fine however

My component looks like this

    <VueDatepickerUi 
      v-model="finaldateplus" 
      range
      lang="es" 
      position="center" 
      placeholder="Fecha de Monitoreo" 
      :disabled-start-date="disabledStartDate"
      :disabled-end-date="disabledEndDate"
      />

And my script look like this

import VueDatepickerUi from 'vue-datepicker-ui';

  export default {
    name: "MonitoreoBulk",
    components: {Datepicker,VueDatepickerUi },
    data() {
      return {

        finaldateplus:[
        new Date(),
        new Date(new Date().getTime() + 1 * 24 * 60 * 60 * 1000)],

        disabledStartDate: {
          to: new Date('01.01.2015'),
          from: null
        },
        disabledEndDate: {
        to: new Date('01.01.2015'),
        from: null
        },
   }
}

SArrueLorca avatar Oct 23 '24 14:10 SArrueLorca