Skip to content

fix(calendar): should markForCheck when properties are changed - #15102

Merged
josephperrott merged 2 commits into
angular:masterfrom
andrewseguin:calendar-mark-for-check
Mar 5, 2019
Merged

fix(calendar): should markForCheck when properties are changed#15102
josephperrott merged 2 commits into
angular:masterfrom
andrewseguin:calendar-mark-for-check

Conversation

@andrewseguin

Copy link
Copy Markdown
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

@crisbeto crisbeto left a comment

Copy link
Copy Markdown
Member

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

jelbourn commented Feb 6, 2019

Copy link
Copy Markdown
Contributor

@andrewseguin are the CI errors real?

@andrewseguin

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@jelbourn jelbourn left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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