Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SArrueLorca opened this issue Oct 23, 2024 · 0 comments
Open

Comments

@SArrueLorca
Copy link

SArrueLorca commented Oct 23, 2024

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
        },
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant