bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Tooltip bug with angular 1.3

Open ozdavid3 opened this issue 12 years ago • 29 comments

When migrating to angular 1.3 tooltip stops showing. It seems like the element does show on the DOM but its class attribute does not contain required classes in order to change opacity (so opacity stays 0).

ozdavid3 avatar Oct 14 '14 12:10 ozdavid3

@ozdavid3 we will need a minimal reproduction scenario to make this one actionable: https://github.com/angular-ui/bootstrap/blob/master/CONTRIBUTING.md#you-think-youve-found-a-bug

pkozlowski-opensource avatar Oct 14 '14 17:10 pkozlowski-opensource

I saw this too. Its actually happens when you include the ngAnimate in angular 1.3: http://plnkr.co/edit/fqqEH3bJcvwTtlnIKyxl

Oddly doesn't effect popovers

crazyjaw avatar Oct 14 '14 21:10 crazyjaw

This is a minimal reproduction scenario of this bug: http://plnkr.co/edit/bYD4roQL9q1CvsuL6dk4?p=preview

boutils avatar Oct 16 '14 09:10 boutils

I also noticed this, and quick fix is to remove the ngAnimate until this is resolved.

bitconym avatar Oct 16 '14 10:10 bitconym

In addition, setting tooltip-animation to false also works around this bug.

jgrund avatar Oct 19 '14 14:10 jgrund

Thanks for the workaround suggestion @jgrund! The project is way beyond disabling ngAnimate so this is a welcome fix.

Burgov avatar Oct 20 '14 07:10 Burgov

@jgrund thanks, better fix than disabling ngAnimate. I disabled tooltiop animation globally via $tooltipProvider

bitconym avatar Oct 20 '14 09:10 bitconym

// ui-bootstrap tooltip animation is broken using angular 1.3
app.config(['$tooltipProvider', function($tooltipProvider) {
  $tooltipProvider.options({animation: false});
}]);

is a temporary workaround, thanks to @imjusd

psi-4ward avatar Oct 24 '14 12:10 psi-4ward

Seems the bug has already been fixed with issue #2825

michael-wirth avatar Oct 24 '14 22:10 michael-wirth

@t4gedieb that change did work on my project. Though the tooltip takes longer to fade out once the mouse leaves than my previous build with Angular 1.2.6.

jsimpsonjr00 avatar Oct 29 '14 22:10 jsimpsonjr00

The animation fix works just for angular 1.3.0, but not anymore for angular 1.3.1

patrickstubner avatar Nov 01 '14 20:11 patrickstubner

@patrickstubner the animation fix isn't required while using angular 1.3.0, and the tooltip doesn't work at all in 1.3.1. http://plnkr.co/edit/suXHNvaqcuTiCxXrrmoC?p=preview (using angular 1.3.1, broken) http://plnkr.co/edit/JcL4iCURMBbYZFhcfLTo?p=preview (using angular 1.3.0, works)

yonatang avatar Nov 01 '14 21:11 yonatang

@yonatang use ngAnimate in your app and you will need the in angular 1.3.0. And yes, with angular1.3.1 it's not working at all.

patrickstubner avatar Nov 01 '14 22:11 patrickstubner

I've looked into the issue for AngularJS 1.3.1. It'll be resolved when I merge #1817. Details are on https://github.com/angular-ui/bootstrap/pull/1600#issuecomment-61393922 .

chrisirhc avatar Nov 02 '14 04:11 chrisirhc

This seemed to already be resolved on master: http://plnkr.co/edit/bQaZ4z5BFwfAZSzRa2Hq?p=preview

chrisirhc avatar Nov 05 '14 09:11 chrisirhc

Nice, hope that the next tag will be up soon, 0.11.3?

sylouuu avatar Nov 05 '14 09:11 sylouuu

+1 for 0.11.3 and fixes for tooltips

mrzepinski avatar Nov 05 '14 10:11 mrzepinski

+1 for 0.11.3

davinkevin avatar Nov 05 '14 12:11 davinkevin

:+1:

cebor avatar Nov 05 '14 14:11 cebor

+1 :coffee:

dhoko avatar Nov 05 '14 14:11 dhoko