Skip to content

[BVTooltip] Transition classes are not removed properly #5584

Closed
@mattersj

Description

@mattersj

Describe the bug

I've noticed that animation classes appended by Vue within transition-group component are not properly removed if there is bootstrap tooltip used.

Steps to reproduce the bug

  1. Add transition-group component with any animation.
  2. Add some elements inside transition-group e.g. couple of li items with b-v-tooltip on every item.
  3. Create some button or anything that can toggle visibility of li elements.
  4. Click the button from third step and check out current li classes in DevTools when visibility has been changed.
  5. Observe that *-enter-to class was not properly removed from li items.

Expected behavior

*-enter-to class should be removed after animation has been finished.

Versions

Libraries:

  • BootstrapVue: 2.5.0
  • Bootstrap: 4.5.0
  • Vue: 2.6.11

Environment:

  • Device: Mac
  • OS: macOS Mojave 10.14.6
  • Browser: Chrome
  • Version: 83.0.4103.116

Demo link

https://codepen.io/mattersj/pen/GRoYyoG

  1. Open the demo link
  2. Open DevTools
  3. Look at li items and click Toggle view button.
  4. li classes still have *-enter-to class after animation has been finished.

If you click on Toggle tooltips button and then click on Toggle view again two times you'll see that transition classes were properly removed.

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