This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.
tooltip's tt_content & "empty" value #1348
Closed
Description
Hi there!
Sorry for my English =). I'm using last github versions of Angular & UI-Bootstrap (1.2.4 & 0.8.snapshot). Maybe some bug there...
controller:
$scope.tip = 'Hi there!';
template:
<input type="text" ng-model="tip" tooltip="{{ tip }}">
Mouseenter will show a proper tooltip: "Hi there!", but if you erase input's value and mouseenter again, you'll see "Hi there!". Is it right behaviour? I think it shouldn't be shown, isn't?
Something like this: (tooltip.js, about line 249)
attrs.$observe( type, function ( val ) {
scope.tt_content = val;
if ( !val && scope.tt_isOpen ) {
hide();
}
});
Metadata
Metadata
Assignees
Labels
No labels