Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit cac2944

Browse files
committed
Redraw tooltip after its text content change
1 parent 03b7c69 commit cac2944

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/tooltip/tooltip.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,16 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap
256256
}
257257
});
258258

259+
/**
260+
* Redraw tooltip after its text content change.
261+
*/
262+
attrs.$observe('tooltip', function (val) {
263+
if (tooltip) {
264+
removeTooltip();
265+
$timeout(show);
266+
}
267+
});
268+
259269
attrs.$observe( prefix+'Title', function ( val ) {
260270
scope.tt_title = val;
261271
});

0 commit comments

Comments
 (0)