-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove tooltip from DOM on hide #391
Comments
@evanb2 this is how the hide behavior works in In theory, removing the element from the DOM could be done instead, but would incur the cost of removing popper.js/tooltip.js teardown and then removing the DOM node, and then the setup cost again were it to be triggered. If tooltips are triggered by hover (as they often are) this is repeating a whole bunch of work any time someone moves their mouse over a triggering element. In the general case, keeping the DOM node around is better. FWIW, the DOM node is lazily rendered initially by default. There's no exposed way right now to implement a more aggressive DOM removal, however. You are, however, able to use the |
@maxfierke Our use case is related to rendering the tooltip inside a custom |
Similar issues here. Because the tooltip stays in the DOM without display:none, having issues where a table resizes after one of the td's shownOn hover tooltips comes in. |
Instead of setting
visibility: hidden
, why not remove the element from the DOM?Is there a way to implement this behavior using the component's API?
The text was updated successfully, but these errors were encountered: