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

Components: Fix the 'ClipboardButton' effect cleanup #67399

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

Mamaduka
Copy link
Member

What?

PR fixes the effect in the ClipboardButton component to cancel the timeout when it is unmounted instead of when it is mounted.

Testing Instructions

None. It's a straightforward fix.

@Mamaduka Mamaduka added [Type] Bug An existing feature does not function as intended [Package] Components /packages/components labels Nov 28, 2024
@Mamaduka Mamaduka self-assigned this Nov 28, 2024
@Mamaduka Mamaduka requested a review from ajitbohra as a code owner November 28, 2024 15:44
@Mamaduka Mamaduka requested review from mirka and tyxla November 28, 2024 15:44
Copy link
Member

@tyxla tyxla left a comment

Choose a reason for hiding this comment

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

Makes sense 🙈 thanks @Mamaduka 🚀

Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: tyxla <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@Mamaduka Mamaduka merged commit db263fb into trunk Nov 28, 2024
71 of 72 checks passed
@Mamaduka Mamaduka deleted the fix/clipboard-button-cleanup branch November 28, 2024 16:24
@github-actions github-actions bot added this to the Gutenberg 19.9 milestone Nov 28, 2024
im3dabasia pushed a commit to im3dabasia/gutenberg that referenced this pull request Dec 4, 2024
michalczaplinski pushed a commit that referenced this pull request Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants