Skip to content
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(material/tooltip): Tooltip should mark for check when visibility … #29000

Merged
merged 1 commit into from May 7, 2024

Conversation

atscott
Copy link
Contributor

@atscott atscott commented May 3, 2024

…changes

This commit fixes an error in the tooltip component where it updates a value used in a host binding without calling markForCheck. This does not currently throw an error because checkNoChanges is broken for OnPush components. However, the error was surfaced when testing an "exhaustive" check that will check all views, regardless of their dirty state. The issue also doesn't really produce a visible problem because it occurs when the tooltip is hidden so the fact that the zoom never updates doesn't make a real difference.

@atscott atscott requested a review from andrewseguin as a code owner May 3, 2024 23:39
@atscott atscott requested a review from mmalerba May 3, 2024 23:39
…changes

This commit fixes an error in the tooltip component where it updates
a value used in a host binding without calling `markForCheck`. This does
not currently throw an error because `checkNoChanges` is broken for
`OnPush` components. However, the error was surfaced when testing an
"exhaustive" check that will check _all_ views, regardless of their
dirty state. The issue also doesn't really produce a _visible_ problem
because it occurs when the tooltip is hidden so the fact that the zoom
never updates doesn't make a real difference.
@mmalerba mmalerba added the target: patch This PR is targeted for the next patch release label May 7, 2024
@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label May 7, 2024
@mmalerba mmalerba merged commit 01540bb into angular:main May 7, 2024
26 of 28 checks passed
mmalerba pushed a commit that referenced this pull request May 7, 2024
…changes (#29000)

This commit fixes an error in the tooltip component where it updates
a value used in a host binding without calling `markForCheck`. This does
not currently throw an error because `checkNoChanges` is broken for
`OnPush` components. However, the error was surfaced when testing an
"exhaustive" check that will check _all_ views, regardless of their
dirty state. The issue also doesn't really produce a _visible_ problem
because it occurs when the tooltip is hidden so the fact that the zoom
never updates doesn't make a real difference.

(cherry picked from commit 01540bb)
mmalerba pushed a commit that referenced this pull request May 7, 2024
…changes (#29000)

This commit fixes an error in the tooltip component where it updates
a value used in a host binding without calling `markForCheck`. This does
not currently throw an error because `checkNoChanges` is broken for
`OnPush` components. However, the error was surfaced when testing an
"exhaustive" check that will check _all_ views, regardless of their
dirty state. The issue also doesn't really produce a _visible_ problem
because it occurs when the tooltip is hidden so the fact that the zoom
never updates doesn't make a real difference.

(cherry picked from commit 01540bb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants