-
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 doesnt play well with OnPush change detection strategy #2148
Comments
Added trigger for change detection in the body click handler. Fix for primefaces#2148.
Autocomplete component behaves in a similar way too. |
@alialtun14 I suggest you log a new issue with relevant plunkr for autocomplete component. Probably the best way to get it fixed quickly. |
@alialtun14 I'm running into the same issue with the autocomplete component, have created this issue for it: #2226 |
Thank you.
…On Tue, Mar 7, 2017 at 5:47 AM, Steve ***@***.***> wrote:
@alialtun14 <https://github.com/alialtun14> I'm running into the same
issue, have created this issue for it: #2226
<#2226>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2148 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAvvdAANk9N_nYAfl2FlqU-CWYf8K7dnks5rjOFmgaJpZM4MLQmM>
.
|
Hi everyone, I'm still having this issue on 2.0.6... I have a calendar that I don't have any issue firing the focus event, however, the calendar consistently requires two clicks to select a date. I did notice that the calendar css classes goes from having Wasn't this issue supposed to fix that? EDITAlso, I don't specify a change detection method SOLVEDMy issue was probably not related to this. See #2378 |
I'm submitting a ...
[x ] bug report => Search github for a similar issue or PR before submitting
http://plnkr.co/edit/i58dTl1dQgrNmKQedcT5?p=preview
Current behavior
When is used within the component with OnPush change detection strategy, the closing of the datepicker popup is not working as expected:
Expected behavior
Datepicker is closed when date is selected or when user clicks anywhere else on the screen.
Minimal reproduction of the problem with instructions
It affects any component that is added to the component with OnPush change detection strategy. See the above plunker.
What is the motivation / use case for changing the behavior?
OnPush change detection strategy is widely used in Angular2 apps for performance reasons so Calendar component should behave correctly in these cases.
Angular version: 2.0.0 and above (incl. most recent one)
PrimeNG version: 2.0.1
Browser: all
The text was updated successfully, but these errors were encountered: