Skip to content

Consider making .tooltip('show') throw an error when the target is display: none #14155

Closed

Description

@cvrebert

This would allow us to drop a callout from the tooltip & popover docs and make the mistake more obvious to our users.

The current callout:

Don't try to show tooltips on hidden elements

Invoking $(...).tooltip('show') when the target element is display: none; will cause the tooltip to be incorrectly positioned.

Activity

  1. added this to the milestone on Jul 15, 2014
  2. itamark commented on Jul 26, 2014

    @itamark

    How can the target's tooltip activate if it's display:none? Do you mean if tooltip is triggered elsewhere in the JS?

  3. cvrebert commented on Jul 26, 2014

    @cvrebert
    CollaboratorAuthor

    @itamark $(...).tooltip('show') is what does the activation. Perhaps you're confusing $(...).tooltip(options) (i.e. the initializer) with $(...).tooltip('show')? See also e.g. #13322.

  4. mdo commented on Aug 2, 2014

    @mdo
    Member

    Punting to v4 checklist.

  5. removed this from the milestone on Aug 2, 2014
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

    jsJavaScript or TypeScript sources and plugins

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions