Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tooltips are not removed from DOM after destroy event

When tooltip is active/focused and destroy event is called the tooltip gets opacity 0, but still clickable and its element still in the DOM.

The problem is reproduced in this Demo: When test button is clicked the tooltip gets "destroyed", but it's still in the DOM and blocks click events on the text input.

Is it normal behaviour? Any clean workarounds?

UPD: seems to be a known issue

like image 636
Maksim Vi. Avatar asked Dec 20 '22 23:12

Maksim Vi.


1 Answers

How about if you use disable instead of destroy?

Fiddle

like image 183
Giovanni Silveira Avatar answered Jan 05 '23 12:01

Giovanni Silveira