primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-calendar doesn't disable months outside of minDate/maxDate with view="month"

Open davidda opened this issue 7 years ago • 8 comments

I'm submitting a ... (check one with "x")

[x ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) Please demonstrate your case at stackblitz by using the issue template below. Issues without a test case have much less possibility to be reviewd in detail and assisted.

https://stackblitz.com/edit/github-wkccop

Current behavior Use p-calendar with view set to "month" and specify a minDate and/or maxDate. Months that lie outside of the minDate or maxDate are not disabled and can still be clicked. If clicked, it will select the minDate/maxDate.

Expected behavior Months that lie outside of the minDate or maxDate are disabled and cannot be clicked. Just the same as it already works for view="date".

  • Angular version: 7.X

  • PrimeNG version: 7.0.0

  • Browser: checked on Firefox, but should be in all browsers

  • Language: all

davidda avatar Dec 15 '18 16:12 davidda

Another option to handle this case will be enabling templates for MonthPicker...

Klinton90 avatar Jan 17 '19 04:01 Klinton90

Any update on this issue please share

rksonline avatar Mar 28 '19 08:03 rksonline

+1

Robyn13 avatar May 23 '19 14:05 Robyn13

+1

csvinhal avatar Jul 01 '19 21:07 csvinhal

+1

henwasd avatar Jul 02 '19 12:07 henwasd

+1

acharat666 avatar Jul 04 '19 20:07 acharat666

+1

meta-prakalpa-rathore avatar Oct 17 '19 06:10 meta-prakalpa-rathore

I have set minDate to 02/28/2024 but it alone is disabling year 2024 as I can select date after February 2024 Screenshot 2024-02-29 161619

12roshan12 avatar Feb 29 '24 10:02 12roshan12