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

MD-Tooltip - Destroy when associated element is removed #880

Open
futurethang opened this issue May 5, 2021 · 0 comments
Open

MD-Tooltip - Destroy when associated element is removed #880

futurethang opened this issue May 5, 2021 · 0 comments
Labels
enhancement Enhancement to an existing feature or component web component @momentum-ui/web-components

Comments

@futurethang
Copy link
Collaborator

The md-tooltip component relies on talk-back to the md-theme component in order for proper popover operation with the nested shadRoots the library and apps built with it can employ.

This can cause the tooltip itself to persist in view even though the original element it is associated with is gone. E.G. when a button has a tooltip and clicking that button navigates to another page.

Idea: add a one to one relationship between the element wrapped by the tooltip and the popover instance of the tooltip so that the popover's visibility mirrors that of the element it is assigned to.

Issue Type

Component or Pattern Affected

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Library:
  • Version used:
  • Browser Name and version:
  • Operating System and version:
  • Link to your project:
@futurethang futurethang added enhancement Enhancement to an existing feature or component web component @momentum-ui/web-components labels May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing feature or component web component @momentum-ui/web-components
Projects
None yet
Development

No branches or pull requests

1 participant