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(tooltip): implement change detection #3380
Conversation
a863e22
to
d0ae2da
Compare
Codecov Report
@@ Coverage Diff @@
## master #3380 +/- ##
==========================================
+ Coverage 91.05% 91.06% +<.01%
==========================================
Files 95 95
Lines 2774 2776 +2
Branches 515 516 +1
==========================================
+ Hits 2526 2528 +2
Misses 189 189
Partials 59 59
Continue to review full report at Codecov.
|
Great news. Will it be backported to the v4 release of ng-bootstrap? (I'm stuck with Angular7) |
d0ae2da
to
24015f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
173c9ca
to
d1c1cf1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peterblazejewicz thanks for the updates, however the code is still not covered by tests:
https://codecov.io/gh/ng-bootstrap/ng-bootstrap/pull/3380/diff
d1c1cf1
to
47a3a80
Compare
reworked, updated. Thanks! |
This fixes issues with custom tooltip class changes not being applied after tooltip creation. Fixes: ng-bootstrap#3335
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, @peterblazejewicz!
Thanks for the update, however I made small changes:
- Changed the test to the more simple and conventional one: just check that
[tooltipClass]="expression"
is correctly applied - In the code used
isOpen()
instead ofthis._windowRef
firstChange
check is redundant, because we haveisOpen()
check
Will merge when Travis is green.
This fixes issues with custom tooltip class changes not being applied after
tooltip creation.
Fixes: #3335