Skip to content

Implement bodyElement in Tooltips and Popover #22261

Closed

Description

@Johann-S

Tether added bodyElement option in 1.4.0 (see shipshapecode/tether#204) and it would be better to use bodyElement instead of trying to do the same thing with container option
in Tooltip (https://github.com/twbs/bootstrap/blob/v4-dev/js/src/tooltip.js#L284-L288) which doesn't work because Tether previous version only add element to the <body>

It would be usefull for #22249

Activity

  1. added
    js
    v4
    on Mar 24, 2017
  2. guv3n commented on Apr 27, 2017

    @guv3n

    I guess this is related to the problem I'm facing right now : I can't make a popover to be appended to a specific DOM element. It's always added to the body.

    When I comment the Tether code (and only that part of the code) in the Tooltip.prototype.show function, the tooltip is obviously not well positioned but is appended to the DOM element I ask.

    Any idea for a workaround ? ;)

  3. Johann-S commented on May 14, 2017

    @Johann-S
    MemberAuthor

    Closed and fixed by #22444

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    jsv4

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions