shipshapecode / tether

A positioning engine to make overlays, tooltips and dropdowns better

Home Page:https://tetherjs.dev/docs/welcome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide element when target is hidden

MikeDevice opened this issue · comments

Let's imagine there is a dropdown, based on tether. It has button that opens and closes dropdown content. This button can be visible on the page or not. It depends of external conditions. We open dropdown content and after some seconds this button has been disappearing, but dropdown content is still visible, because It doesn't know about button, its target.
So how about realize this?

I don't think this is possible without using MutationObserver, which is beyond the scope of what Tether does.