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

Use tooltip combined with other elements cause collision of $digest. #3539

Closed
TomerAvni opened this issue Apr 14, 2015 · 3 comments
Closed

Comments

@TomerAvni
Copy link

Using the tooltip directive alongside another directive might cause collision in $digest having both directives $applying their phase.
Specifically in line 2589 on the hideTooltipBind function, a better approach might be
scope.$evalAsync(hide);
instead of:
scope.$apply(function () {
hide();
});
To avoid collision in $digesting.

P.S.
There other ways to solve this problem (such as validating $digest is not in progress).

@mvhecke
Copy link
Contributor

mvhecke commented Apr 14, 2015

Is this a duplicate of #516?

@TomerAvni
Copy link
Author

It is... Sorry for this.

@chrisirhc
Copy link
Contributor

Actually, @TomerAvni , could you post a reproduction? I want to figure out which use cases are broken. Perhaps you can add a reproduction on #516 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants