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

Tooltip sticks When Element is destroyed #435

Closed
jsinhSolanki opened this issue Jan 17, 2019 · 7 comments · Fixed by #873
Closed

Tooltip sticks When Element is destroyed #435

jsinhSolanki opened this issue Jan 17, 2019 · 7 comments · Fixed by #873
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jsinhSolanki
Copy link
Contributor

jsinhSolanki commented Jan 17, 2019

Hey, I am using tooltip in my navbar and I have two layout.

  1. With navbar
  2. No Navbar

I have button in navbar which navigates to another layout which dont have any navbar.(So, when I click on btn, btn it self and navbar gets destroyed). But that tooltip which I used on button still remain.

i have created simillar demo for you.
jsfiddle

@luisDanielRoviraContreras luisDanielRoviraContreras added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Jan 17, 2019
@luisDanielRoviraContreras
Copy link
Member

thanks for notifying me I will review the problem and fix it in a next update

@luisDanielRoviraContreras
Copy link
Member

ready already fixed in the latest version please verify, thank you very much for the contribution

@jsinhSolanki
Copy link
Contributor Author

jsinhSolanki commented Jan 22, 2019

Hi, @luisDanielRoviraContreras. I cross checked tooltip on jsfiddle it flickers constantly. You can see that in above jsfiddle of this issue.

Thanks.

@Pedrazl
Copy link
Contributor

Pedrazl commented Feb 1, 2019

I am having problems with the tooltips too. It goes in and out constantly, this issue should be opened again @luisDanielRoviraContreras

@Pedrazl
Copy link
Contributor

Pedrazl commented Jun 24, 2019

I tried to fix this bug, but no luck. I has something to do with the way vsTooltip set {'after-none': noneAfter} class. For some reason the div containing the tooltip, automatically has a "display:none" on his style, thats why we can only see it for a millisecond.
Hope this helps to get this fixed.

@plasebo
Copy link

plasebo commented Jan 6, 2020

I've used the router js file to remove all sticky tooltips on either the afterEach or beforeEach event. The afterEach event is better. Example in the router.js file:

router.afterEach(() => { const Stickedtooltips = document.querySelectorAll(".vs-tooltip") for (const tooltip of Stickedtooltips) { tooltip.remove(); } })

However, this only works when navigating through different pages

@Tofandel
Copy link
Contributor

Tofandel commented Jul 31, 2020

Now you can see the tooltip doesn't even show on the fiddle... Great testing before deployment..

Fixed by 805197b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants