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 doesn't show up when svg's <foreignObject> elements has tag <body>  #6597

Open
@sshelake25

Description

@sshelake25

Bug description: Uib Tooltip does not shows when document contains multiple 'body' tag.

Example: When page contains multiple SVG elements and SVG element's contains tag. In that case according to code it tries to to find body tag inside document and appends tooltip to it. but it fails when document contails multiple 'body' tag inside it.

if (appendToBody) {
$document.find('body').append(tooltip);
//it shold be angular.element(document.body).append(tooltip);
} else {
element.after(tooltip);
}

Link to minimally-working plunker that reproduces the issue: As this issues in only producing on our enviorment. its very hard to reproduce it on plunker. As plunker removing multiple body tag. we will provide you DOM screenshot.

Steps to reproduce the issue: add 'body' tag inside SVG element. add such multiple SVG element on page. tooltip won't show when you enabled append-to-body flag to true.

Version of Angular, UIBS, and Bootstrap

Angular:1.4.4

UIBS:1.3.3

Bootstrap:3.3.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions