-
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
[minDate-maxDate] may not update in Calendar #4755
Comments
I had got the same issue the p-calender validations is not updating until i change the month. |
I have the same issue validations are not updated until I change the month. |
I found in the source code there is some follow judge code: |
How i can this fix?) |
You can change the source code for a temporary fix until someone in primeng fix it. Something like this: |
Encountered the same issue. Following.. |
+1 same use case, same problem. Works after changing the month. |
Works after changing and choose other month. |
A fix for the issue discussed in primefaces#4755. A case where the previous code doesn´t work is if minDate currentMonth is January, i.e. 0.
I can't replicate, here is my case; http://plnkr.co/edit/SCe6pwFbTayipI2EU1g9?p=preview Please replicate using the plunkr above |
This issue arises when the current month must be january. In all other cases it works. |
I want to explain above issue in breif. |
PR merged |
@cagataycivici Now if I click on next arrow button and go till December then it comes directly to year 2020. I am confused about this weird behaviour. |
PrimeNG@v[4.3.0].
Hi,
I am facing an issue in p-calendar tag as I am not able to update the [minDate] of the p-calendar component.
The scenario is as follows:-
I have two p-calendar tags in my DOM.
First one is used to set the [minDate] of the second p-calendar tag.
The [minDate] only reflects after I try to write something on the second p-calendar input tag.
I think the second p-calendar component does not update the [minDate] after the [minDate] model changes. It is taking the previously set [minDate] until the component is updated from the DOM.
Awaiting reply.
Thank you @cagataycivici
The text was updated successfully, but these errors were encountered: