Ng-bootstrap: Tooltip does not show at the right postion using ChangeDetectionStrategy.OnPush

Created on 20 Sep 2016  路  1Comment  路  Source: ng-bootstrap/ng-bootstrap

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
tooltip bug

Most helpful comment

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DanielTibbing picture DanielTibbing  路  3Comments

dominikhb picture dominikhb  路  3Comments

elainebyrne picture elainebyrne  路  3Comments

kesemdavid picture kesemdavid  路  3Comments

asadsahi picture asadsahi  路  3Comments