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

Minor bug with <wa-tooltip> when used with <wa-switch> #184

Open
HovKlan-DH opened this issue Feb 12, 2025 · 0 comments
Open

Minor bug with <wa-tooltip> when used with <wa-switch> #184

HovKlan-DH opened this issue Feb 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@HovKlan-DH
Copy link

Describe the bug

When having a tooltip on a switch, then if rapidly clicking the switch, then the tooltip will not show correctly afterwards.
Tested with 3.0.0-alpha.10.

To Reproduce

Steps to reproduce the behavior:

  1. Create this code:
<wa-switch id="toggle-button">Switch with tooltip</wa-switch><br />
<wa-tooltip for="toggle-button" placement="right-end">Tooltips are great to have</wa-tooltip>
  1. Click multiple times on the switch, just as the tooltip appears (~100-150ms)
  2. Afterwards you will not be able to see the tooltip, as it qucikly disappears

Demo

https://jsfiddle.net/mjfoky0b/

Browser / OS

  • OS: Windows 10
  • Browser: Chrome
@HovKlan-DH HovKlan-DH added the bug Something isn't working label Feb 12, 2025
@HovKlan-DH HovKlan-DH changed the title Minor bug with <wa-tooltip> and <wa-switch> Minor bug with <wa-tooltip> when used with <wa-switch> Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant