角度堆栈冻结的工具提示

时间:2014-03-07 18:33:28

标签: angularjs angular-strap

我使用角度带+角度动画(角度运动)创建了一些工具提示。最初它们正在工作,因为所有这些都在悬停时显示。但是当快速盘旋在任何工具尖端上时,它们会冻结并卡在左上角。

nav(id="menubarContainer")

    ul
        li(bs-tooltip="tooltip.home"  data-placement="bottom")
            i(class="fa fa-home fa-2x" ui-sref="home")

        li(bs-tooltip="tooltip.create" data-placement="bottom-left")
            i(class="fa fa-plus fa-2x")

        li(bs-tooltip="tooltip.settings" data-placement="bottom-left")
            i(class="fa fa-cog fa-2x")

        li(bs-tooltip="tooltip.help" data-placement="bottom-left")
            i(class="fa fa-question-circle fa-2x")

镀铬鞋这个错误: 未捕获的TypeError:无法读取null angular-animate.js:290

的属性'length'

这是:

 function extractElementNode(element) {
      for(var i = 0; i < element.length; i++) { //here it cant read length of null!
        var elm = element[i];
        if(elm.nodeType == ELEMENT_NODE) {
          return elm;
        }
      }
    }

任何人都有类似的问题吗?

1 个答案:

答案 0 :(得分:1)

这似乎是一个回归错误。您需要返回Angular和ngAnimate版本1.2.13。还没有错误修复。对不起:(

有关详细信息,请查看此issue