-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(calendar): should markForCheck when properties are changed #15102
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
fix(calendar): should markForCheck when properties are changed #15102
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@andrewseguin are the CI errors real? |
Should not be real but Ill see what's going on Note that the reason this worked before is because the property changes were done by a nested view's event handling. This would propagate and cause this view to be marked dirty and update. Since these properties may not be changed due to an event, it should not be assumed that the view will be marked dirty and this is valid. This was discovered due to Ivy-related tests and an appropriate Jira ticket was opened to preserve current behavior. |
Looks like I'm seeing the error now - looking into it. Surprised marking for dirty is causing an error.... |
Looks like the test wasn't right - it was focusing on the wrong element after the view changed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* fix(calendar): should markForCheck when properties are changed * fix test
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
activeDate
andcurrentView
are properties used in the view and the change detector should be aware when they are changed