Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Setting minDate disables the desired minimum date #128

Closed
anne-marcotte opened this issue Mar 18, 2022 · 5 comments
Closed

Setting minDate disables the desired minimum date #128

anne-marcotte opened this issue Mar 18, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@anne-marcotte
Copy link

Describe the bug
When setting the minimum date on the date picker via minDate prop, I cannot select the day of the actual minimum date. This does not fit the description of the prop provided in the docs:

minDate
All dates before the given date will be disabled

To Reproduce

  1. Go to https://vue3datepicker.com/api/props/#mindate
  2. Note the example uses today's date for minDate
  3. Open date picker example
  4. Note that today's date is disabled, and hovering over the date changes the cursor to reflect the disabled state.

Expected behavior
I expect to be able to select the actual day of the minimum date, while all days before the minimum date are disabled

Code

<template>
    <Datepicker v-model="date" :minDate="new Date()" />
</template>

<script>
import { ref } from 'vue';

export default {
    setup() {
        const date = ref(new Date());
        
        return {
            date,
        }
    }
}
</script>

Screenshots
Screen Shot 2022-03-17 at 10 07 50 PM

Desktop (please complete the following information):

  • macOS Big Sur 11.6.4
  • Chrome
  • Version 99.0.4844.51
@Jasenkoo Jasenkoo added the bug Something isn't working label Mar 18, 2022
@Jasenkoo
Copy link
Contributor

@anne-marcotte Hmm, strange, today should be enabled, can you tell me your timezone so I can check? From my side, I can select today.

@anne-marcotte
Copy link
Author

@Jasenkoo thanks for taking a look. I'm Eastern Daylight Time (New York)

@Jasenkoo
Copy link
Contributor

Tnx for answer, this might be due to a time change last weekend

@Jasenkoo
Copy link
Contributor

The issue is fixed, please switch to the new package https://github.com/Vuepic/vue-datepicker

@anne-marcotte
Copy link
Author

The issue is fixed, please switch to the new package https://github.com/Vuepic/vue-datepicker

Thank you very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants