Skip to content
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

fix(settings): reset tooltip on HTML append #1444

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

momolly1024
Copy link

Description

This PR addresses an issue where tooltips flicker when dynamically added HTML elements contain data-toggle="tooltip" attributes.

Changes Made

  • Added logic to dispose of existing tooltip instances before initializing new ones.
  • Ensured tooltips are correctly attached to dynamically added elements.

Steps to Reproduce

  1. Dynamically add an element with a tooltip (data-toggle="tooltip") to the DOM.
  2. Hover over the new element and observe the flickering issue.

Expected Behavior

Tooltips should appear correctly without flickering or duplication.

I wasn't able to fully test the changes as I couldn't set up the full environment. However, based on my understanding of the issue and the codebase, this fix should address the tooltip flickering issue. Please let me know if additional adjustments are needed.

@momolly1024
Copy link
Author

Fix: Tooltip flickering issue on dynamically added elements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant