Skip to content

<b-tooltip>/<b-popover>: Directive shows default browser title with a long show delay #4114

Closed

Description

@Hiws

Describe the bug

In version 2.0.0 a bug was introduced where if you provide a longer show delay(500ms and above), it will show the default browser tooltip based on the title.
This was not previously the case up until version 2.0.0-rc.28.

Steps to reproduce the bug

  1. Add a popover/tooltip to a element
  2. Add the directive with a hover trigger and a show delay of 500ms or higher
  3. See that the default browser title appears before the tooltip/popover is shown.

Expected behavior

The tooltip or popover should override the default browser title and prevent it from being shown.

Versions

Libraries:

  • BootstrapVue: 2.0.0 and later
  • Bootstrap: 4.3.1
  • Vue: 2.6.10

Demo link

https://codepen.io/Hiws/pen/qBWMpMg

Activity

  1. changed the title [-]<b-tooltip>/<b-popover>: Directive shows default browser title if you provide a show delay[/-] [+]<b-tooltip>/<b-popover>: Directive shows default browser title with a long show delay[/+] on Sep 17, 2019
  2. tmorehouse commented on Sep 17, 2019

    @tmorehouse
    Member

    Yeah... will need to figure out a way to hide the title when the trigger has entered the "enter" phase, rather than when the tooltip actually shows.

    We had decided to leave the original title on the trigger element until the tip shows for accessibility reasons (when screen readers read the page or section content, it will announce the title to them).

    This would actually happen on the component versions as well if a title attribute was provided on the trigger element (although the component versions do not use the title attribute)

  3. self-assigned this
    on Sep 17, 2019
  4. added a commit that references this issue on Sep 17, 2019
    0ebe249
  5. tmorehouse commented on Sep 17, 2019

    @tmorehouse
    Member

    PR #4120 fixes the issue with the title attribute and the show delay.

  6. added a commit that references this issue on Sep 18, 2019
    2dd8d5a
  7. tmorehouse commented on Sep 20, 2019

    @tmorehouse
    Member

    BootstrapVue v2.0.2 has just been released, which includes a fix for this.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions