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

Tooltip does not show at the right postion using ChangeDetectionStrategy.OnPush #772

Closed
hongbo-miao opened this issue Sep 20, 2016 · 1 comment

Comments

@hongbo-miao
Copy link
Contributor

hongbo-miao commented Sep 20, 2016

Bug description:

When using changeDetection: ChangeDetectionStrategy.OnPush, the tooltip does not show at right position.
image

Without changeDetection: ChangeDetectionStrategy.OnPush, it shows well
image

Link to minimally-working plunker that reproduces the issue:

http://plnkr.co/edit/YZAJYYLw8pUq6IM6DZ1f?p=preview

Version of Angular, ng-bootstrap, and Bootstrap:

  • Angular 2.0.0
  • ng-bootstrap 1.0.0-alpha.5
  • Bootstrap 4 Alpha 4
@pkozlowski-opensource
Copy link
Member

Thnx for reporting @hongbo-miao. This looks like a corner case for components using OnPush and manual triggers registration. It is easy to work-around on our end I'm doing just this in the #777

I will follow up with others in the Angular core team to see if this shouldn't be fixed in the Angular itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants