Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tooltip): ensure valid node before removal to prevent errors
This commit fixes an issue where the `removeTooltip` function attempted to remove a tooltip element from the DOM without verifying if it was a valid child of `document.body`. The updated implementation adds a check to ensure the tooltip exists and its parent node is `document.body` before proceeding with the removal. This change prevents the "Failed to execute removeChild on Node: parameter 1 is not of type Node." error from being thrown, enhancing the robustness and reliability of tooltip removal.
- Loading branch information