-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Tooltip broken in angularJS 1.3.1+, works in 1.3.0 #2965
Comments
I suspect this is the same issue that cause popovers to stop working in angular >=1.3.1. Example: click me With the latest release, clicking on the button fails to show the popover. For popovers, the issue is that event listeners are not being bound. Root cause is a change in the implementation of $compile.directive.Attributes.$observe. The old implementation would always call the observer function once, and the tooltip/popover directive code assumes this. The new $observe only calls the observer function if the attribute is present on the element. Temporary work around is simple: you must explicitly specify the trigger (and position) even when using the default. So the above popover will work if you code it as: click me I bet tooltips have the same issue. Long term, code in $tooltip() factory (ui-bootstrap.js and ui-bootstrap-tpls.js) likely needs to change. |
+1 |
ran into this just now too:( |
@bkmartinjr, i'm having trouble understanding your workaround. i've added tooltip-placement="top" and tooltip-trigger="focus" to my element and it's still not working. |
It works for popover with -placement, -append-to-body, -trigger |
It works for tooltip if you specify tooltip-trigger and tooltip-placement If you omit either of these, it will not work. On Thu, Nov 13, 2014 at 9:59 AM, Fabien Vauchelles <[email protected]
Bruce Martin |
@bkmartinjr, are you sure? i tried that in my plunkr and it's still not working. i also had the tooltip attribute defined - for the record. i'm also using ui-bootstrap .11.2 and bootstrap 3.3 here's the new plunkr: http://plnkr.co/edit/5QDrA5GVLbCTJFiksEs8 |
I just modified your plunkr -- added the two missing attributes -- and http://plnkr.co/edit/8wgIgYjfvs3rIqBQNuoY?p=preview On Thu, Nov 13, 2014 at 10:35 AM, icfantv [email protected] wrote:
Bruce Martin |
@bkmartinjr, gah! wrong event. i can never remember that focus isn't mouse. thanks. |
This should already be fixed on master. |
The title of this issue implies that the tooltip works on 1.3.0, but not on 1.3.1, I can't get it working on 1.3.0 either, highest I can go is 1.2.20 |
Closed via 32c4704 |
Looks like a change in angular from 1.3.0 to 1.3.1 breaks tooltips. Here's the plunker: http://plnkr.co/edit/Iomdzv58NWmL9ZHLeDCJ
It's currently in the broken state. Change 1.3.1 to 1.3.0 for angular.js in the and it works again.
The text was updated successfully, but these errors were encountered: