在NG-重复角UI提示不打烊 [英] Angular UI tooltip in ng-repeat not closing

查看:121
本文介绍了在NG-重复角UI提示不打烊的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请参阅下面的plunker:
http://plnkr.co/edit/RPpjULZsSDnTFPKiafl2

Please see the plunker below: http://plnkr.co/edit/RPpjULZsSDnTFPKiafl2

基本上,向上/向下移动到一个位置,NG-残疾人是真实的,当角的UI提示仍然存在。如何解决该问题的任何想法将是非常美联社preciated!

Basically, the angular-ui tooltip remains when moving up / down to a position where ng-disabled is true. Any thoughts on how to fix the issue would be much appreciated!

我使用的浏览器,但在那里,即使NG-禁用删除工具提示仍然在鼠标离开的问题出现在Firefox中更为严重。

I'm using Chrome, but the issue appears more serious in Firefox where even with ng-disabled removed the tooltips still remain on mouseleave.

推荐答案

您可以使用 $ tooltipProvider ,并改变触发地图采取点击作为额外的隐藏触发的的mouseenter 显示触发:

You can use the $tooltipProvider and alter the trigger map to take click as an additional hide trigger for the mouseenter show trigger:

myApp.config(['$tooltipProvider', function($tooltipProvider){
  $tooltipProvider.setTriggers({
    'mouseenter': 'mouseleave click'
  });
}]);

AngularUI的v0.9.0从这个问题造成错误(尽管仍然有效),其上有一个提示删除按钮(例如)。这随后被固定于v0.10.0。

v0.9.0 of AngularUI suffered from this issue which caused errors (although still worked) on delete buttons (for instance) which had a tooltip. This has been subsequently fixed in v0.10.0.

下面是它在行动演示

这篇关于在NG-重复角UI提示不打烊的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆