Skip to content

Commit 08d8b21

Browse files
fix(tooltip): restore html-unsafe compatibility with AngularJS 1.2
1 parent 7c5cb18 commit 08d8b21

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/tooltip/test/tooltip.spec.js

+5
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,11 @@ describe( 'tooltipHtmlUnsafe', function() {
363363
elmScope = elm.scope();
364364
}));
365365

366+
it( 'should render html properly', inject( function () {
367+
elm.trigger( 'mouseenter' );
368+
expect( elmBody.find('.tooltip-inner').html() ).toBe( scope.html );
369+
}));
370+
366371
it( 'should show on mouseenter and hide on mouseleave', inject( function () {
367372
expect( elmScope.tt_isOpen ).toBe( false );
368373

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">
22
<div class="tooltip-arrow"></div>
3-
<div class="tooltip-inner" ng-bind-html-unsafe="content"></div>
3+
<div class="tooltip-inner" bind-html-unsafe="content"></div>
44
</div>

0 commit comments

Comments
 (0)