Skip to content

ChangeDetectionStrategy.OnPush causes tooltips to break after upgrade to beta 3 #4014

Closed

Description

@alexjlockwood

Bug, feature request, or proposal:

Tooltips started looking glitchy after I upgraded to beta 3 (see the gif and plunkr below).

It seems like the glitch has to do with setting changeDetection: ChangeDetectionStrategy.OnPush on the component, because when I remove that line the tooltips look fine.

What is the expected behavior?

The tooltip shouldn't flicker.

What is the current behavior?

The tooltip flickers:

tooltipbug

What are the steps to reproduce?

Here is a Plunkr that reproduces the issue: https://plnkr.co/edit/uqE0gm?p=preview

Which versions of Angular, Material, OS, browsers are affected?

I am using Chrome, the latest version of Material (beta 3), and the latest version of Angular (4.0.1).

Activity

  1. willshowell commented on Apr 10, 2017

    @willshowell
    Contributor

    Looks like dupe of #3497, with PR on the way #3671

  2. jelbourn commented on Apr 11, 2017

    @jelbourn
    Contributor

    Yep, should be fixed by #3671 in the next release.

  3. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  4. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions