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

Allowed dates can't be selected in month picker #1075

Open
DmitryTar1 opened this issue Jan 21, 2025 · 0 comments
Open

Allowed dates can't be selected in month picker #1075

DmitryTar1 opened this issue Jan 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@DmitryTar1
Copy link

DmitryTar1 commented Jan 21, 2025

Describe the bug
Allowed dates in month picker updated visually, but not allowed to select.
For example I have allowedDates = ['2020-01'], I see in datepicker that I can select this month, but it's not working.
It worked in version 10.0.0.

To Reproduce
Steps to reproduce the behavior:
Code example attached, updated a little demo version.
In this case callback won't be called.

<template>
  <div>
    <Datepicker
      month-picker
      auto-apply
      text-input
      :allowed-dates="['2020-01']"
      @update:modelValue="callback"
    />
  </div>
</template>

<script setup>
import { ref } from 'vue';
import Datepicker from '@vuepic/vue-datepicker';
import '@vuepic/vue-datepicker/dist/main.css';

const date = ref();
const callback = (value) => {
  console.log(value, 'value');
};
</script>

Expected behavior
User can select the month that is allowed and the callback will work.

Image

Desktop & mobile (please complete the following information):

  • Browser chrome
  • Library version 11.0.1
@DmitryTar1 DmitryTar1 added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Jan 21, 2025
@Jasenkoo Jasenkoo removed the awaiting triage The issue is not reviewed by the maintainers label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants