-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 not honoring selectOtherMonths property correctly #1689
Comments
…n the calendar by default, closes primefaces#1690 and fixes primefaces#1689
Applied fix for selectOtherMonths option as it wasnt working properly. Correct CSS class now applied for dates from other months depending on the value of selectOtherMonths option. Year calculated properly for date in the next month (but the same year). primefaces#1935 Selectable property set on the date from other month properly based on the value of selectOtherMonths option.
Applied fix for selectOtherMonths option as it wasnt working properly. Correct CSS class now applied for dates from other months depending on the value of selectOtherMonths option. Year calculated properly for date in the next month (but the same year). primefaces#1935 Selectable property set on the date from other month properly based on the value of selectOtherMonths option.
Create a pull request with a fix for this issue and also 1689 as they are related. The first of my commits should be ignored as it was done against incorrect branch/fork. hjalmers pull request is good and adds good functionality to allow specification of "disabled" dates, but I have created a pull request that fixes only the problem at hand, i.e. that selectOtherMonths option is not working properly - just to minimize the changes and potential impact. Summary of the changes:
|
I can't replicate with 4.0.RC1, anyone. selectOtherMonths is false by default. Note that, following enables it;
should be;
Or just leaving it as it is since it is false by default. |
I'm submitting a ...
Current behavior
Even when
selectOtherMonths = false
month is clickable (but not selectable) and theui-state-disabled
class is applied even ifselectOtherMonths = true
Expected behavior
selectOtherMonths = false
should disable the ability to click on dates in other months and the classui-state-disabled
should only be applied when this property is false.Minimal reproduction of the problem with instructions
Use calendar and set selectOtherMonths to false
What is the motivation / use case for changing the behavior?
The function should work as described
Angular version: 2.3.1
PrimeNG version: 1.1.2
Browser: all
The text was updated successfully, but these errors were encountered: