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

Remove "Copied!" tooltip after it's hidden #1100

Merged
merged 1 commit into from
Sep 13, 2021

Conversation

Vinnl
Copy link
Collaborator

@Vinnl Vinnl commented Sep 13, 2021

Fixes #1099.

Where the "Copied!" tooltip would previously only be removed when
another alias was copied, it is now removed as soon as it's hidden
from view. This prevents the animation from being replayed every
time the alias is hidden from view, then shown again (i.e. when a
filter is applied, then unapplied).

Where the "Copied!" tooltip would previously only be removed when
another alias was copied, it is now removed as soon as it's hidden
from view. This prevents the animation from being replayed every
time the alias is hidden from view, then shown again (i.e. when a
filter is applied, then unapplied).
@Vinnl Vinnl requested a review from maxxcrawford September 13, 2021 12:08
Copy link
Contributor

@maxxcrawford maxxcrawford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works as expected. Great fix!

// is applied and removed again).
triggeringEl.classList.remove("alias-copied", "alias-copied-fadeout");
triggeringEl.title = "Copy alias to clipboard";
}, 4 * 1000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice readability math here!

@maxxcrawford maxxcrawford merged commit be58301 into main Sep 13, 2021
@maxxcrawford maxxcrawford deleted the 1099-tooltip-stays-gone branch September 13, 2021 22:01
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.

"Copied" tooltip for an alias is displayed again when closing/deleting the search filter
2 participants