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: to not call handler when disconnected target's event occurs #374

Merged
merged 6 commits into from
Feb 3, 2024

Conversation

hooriza
Copy link
Contributor

@hooriza hooriza commented Aug 29, 2023

Fixed a bug with handler being called when the event target is not connected to a document

I've created a sample code to check the bug
https://codesandbox.io/s/gracious-ardinghelli-cx6j84?file=/src/Dialog.tsx

@changeset-bot
Copy link

changeset-bot bot commented Aug 29, 2023

🦋 Changeset detected

Latest commit: cee5f6c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
usehooks-ts Minor
www Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Aug 29, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @juliencrn on Vercel.

@juliencrn first needs to authorize it.

@juliencrn juliencrn added the bug Something isn't working label Jan 19, 2024
juliencrn
juliencrn previously approved these changes Feb 2, 2024
Copy link
Owner

@juliencrn juliencrn left a comment

Choose a reason for hiding this comment

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

Great, thank you 👍

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

Successfully merging this pull request may close these issues.

2 participants