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

Fix clipboard logic to reset state #240

Merged
merged 1 commit into from
Dec 17, 2020
Merged

Conversation

kylesuss
Copy link
Collaborator

Small bug introduced in the refactor at #222 . The timeout never gets called.

Comment on lines +42 to 44
if (copied && resetTimeout) {
timeoutId = setTimeout(() => setCopied(false), resetTimeout);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🐔 & 🥚 problem. The timeoutId can't exist without first hitting this code block so we will never end up setting the timeout.

@kylesuss kylesuss added the patch Increment the patch version when merged label Dec 17, 2020
@winkerVSbecks winkerVSbecks merged commit 9c92f6c into master Dec 17, 2020
@winkerVSbecks winkerVSbecks deleted the fix-clipboard-logic branch December 17, 2020 19:28
@kylesuss
Copy link
Collaborator Author

🚀 PR was released in v5.4.5 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants