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

Calendar: Disable year and month when set minDate or maxDate #3589

Closed
king-ppap opened this issue Jan 26, 2023 · 3 comments
Closed

Calendar: Disable year and month when set minDate or maxDate #3589

king-ppap opened this issue Jan 26, 2023 · 3 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@king-ppap
Copy link

king-ppap commented Jan 26, 2023

Describe the bug

I want it to be disabled the number button because when I use it to be a Month Picker or Year Picker users don't understand why they can not click the button or click it but the input doesn't change.
PR #3588

Reproducer

https://codesandbox.io/s/reverent-butterfly-nytd5z?file=/src/App.vue

PrimeVue version

3.22.4

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. User has to click select a month or year in Month Picker or Year Picker.
  2. User cannot click select a month or year that was not in the range set with minDate or maxDate prop.

Expected behavior

Prevent users to click the months and years number buttons when setting minDate or maxDate

@king-ppap king-ppap added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 26, 2023
@king-ppap king-ppap changed the title Calendar: Disable year and month when set minDate or maxDate #3588 Calendar: Disable year and month when set minDate or maxDate Jan 26, 2023
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Mar 9, 2023
@tugcekucukoglu tugcekucukoglu added this to the 3.24.1 milestone Mar 9, 2023
@tugcekucukoglu tugcekucukoglu self-assigned this Mar 9, 2023
@hifisultonauliya
Copy link

hifisultonauliya commented Sep 6, 2023

hi @king-ppap, can we have this feature in primevue v2 also?

@king-ppap
Copy link
Author

king-ppap commented Sep 22, 2023

hi @king-ppap, can we have this feature in primevue v2 also?

@hifisultonauliya Sorry, I think you have to ask Primefaces directly to do that for you 🤔
I'm just the one who passing by. 😅

@hifisultonauliya
Copy link

Hi @tugcekucukoglu
can you add this bugs fix on privevue 2x also?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants