-
Notifications
You must be signed in to change notification settings - Fork 6.7k
fix(tooltip): isOpen to work with expressions #4380
Conversation
scope.$digest(); | ||
})); | ||
|
||
it( 'should show and hide with the expression', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove space before '
@@ -221,7 +221,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position']) | |||
|
|||
// And show the tooltip. | |||
ttScope.isOpen = true; | |||
if (isOpenExp) { | |||
if (isOpenExp && angular.isFunction(isOpenExp.assign)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused - does this not work currently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will throw an exception if using an expression instead of a model value, this change will allow for both implementations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have commented, I read the related issue and understood.
The is-open attribute should work with expressions as well as model values Closes #4380
The is-open attribute should work with expressions as well as model values Closes angular-ui#4380 Fixes angular-ui#4362
The is-open attribute should work with expressions as well as model values Closes angular-ui#4380 Fixes angular-ui#4362
The is-open attribute should work with expressions
as well as model values