Skip to content

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

Merged
merged 2 commits into from
Mar 5, 2019

Conversation

andrewseguin
Copy link
Contributor

activeDate and currentView are properties used in the view and the change detector should be aware when they are changed

@andrewseguin andrewseguin added the target: patch This PR is targeted for the next patch release label Feb 6, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 6, 2019
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crisbeto crisbeto added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Feb 6, 2019
@jelbourn
Copy link
Member

jelbourn commented Feb 6, 2019

@andrewseguin are the CI errors real?

@andrewseguin
Copy link
Contributor Author

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.

@andrewseguin
Copy link
Contributor Author

Looks like I'm seeing the error now - looking into it. Surprised marking for dirty is causing an error....

@jelbourn jelbourn removed the action: merge The PR is ready for merge by the caretaker label Feb 7, 2019
@andrewseguin
Copy link
Contributor Author

Looks like the test wasn't right - it was focusing on the wrong element after the view changed.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added the action: merge The PR is ready for merge by the caretaker label Feb 20, 2019
@josephperrott josephperrott merged commit 679bdb6 into angular:master Mar 5, 2019
josephperrott pushed a commit that referenced this pull request Mar 5, 2019
* fix(calendar): should markForCheck when properties are changed

* fix test
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants