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 fails when closing on an element that's removed #3347

@WilcoFiers

Description

@WilcoFiers

I'm using the tooltip on a delete button, which delete a row in a table. The button has a mouse enter/leave effect. When I click the button, which is then deleted with an animation, the following error is logged:
Uncaught TypeError: Cannot read property 'isOpen' of null

The following seems to fix the problem:
function toggleTooltipBind () {
if (!ttScope) return; // Check that the element still exists.
if ( ! ttScope.isOpen ) {
showTooltipBind();
} else {
hideTooltipBind();
}
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions