Skip to content
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: attribute tooltip-is-open throws error when boolean is passed #4362

@vitto

Description

@vitto

Hi, I'm trying to use the tooltip with this behavior:

On rollover the tooltip open
On click outside the tooltip close

<sup
    class="tip-help"
    tooltip="Hello world"
    tooltip-is-open="opened || false"
    data-ng-mouseenter="opened = true"
    click-outside="opened = false"
    tooltip-trigger="none">
    ?
</sup>

click-outside is a directive which fires on click outside event.

I've also tried with and without tooltip-trigger="none" but the problem persists

when I fire mouseenter event or click-outside I get this error:

TypeError: K.assign is not a function
    at r (http://app.soisy.local/vendor/angular-bootstrap/ui-bootstrap-tpls.min.js:9:14241)
    at n (http://app.soisy.local/vendor/angular-bootstrap/ui-bootstrap-tpls.min.js:9:14080)
    at j (http://app.soisy.local/vendor/angular-bootstrap/ui-bootstrap-tpls.min.js:9:13987)
    at Object.fn (http://app.soisy.local/vendor/angular-bootstrap/ui-bootstrap-tpls.min.js:9:16023)
    at m.a.$get.m.$digest (http://app.soisy.local/vendor/angular/angular.min.js:131:356)
    at m.a.$get.m.$apply (http://app.soisy.local/vendor/angular/angular.min.js:134:361)
    at HTMLElement.<anonymous> (http://app.soisy.local/vendor/angular/angular.min.js:250:446)
    at HTMLElement.n.each.n.event.special.(anonymous function).handle (http://app.soisy.local/vendor/jquery/dist/jquery.min.js:3:10169)
    at HTMLElement.n.event.dispatch (http://app.soisy.local/vendor/jquery/dist/jquery.min.js:3:6466)
    at HTMLElement.n.event.add.r.handle (http://app.soisy.local/vendor/jquery/dist/jquery.min.js:3:3241)

Am I wrong with some practice or is the tooltip-is-open attribute has some problem?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions