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

Add extra current.contains check to useOutsideClickHandler #54

Merged

Conversation

illusional
Copy link
Contributor

Although .current is defined, .current.contains is sometimes not.

Fixes: #53

Although .current is defined, .current.contains is not.
vibin-230 pushed a commit to vibin-230/react-nice-dates that referenced this pull request Feb 2, 2021
Copy link
Owner

@hernansartorio hernansartorio left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. This looks good, thank you!

@hernansartorio hernansartorio merged commit f0a824e into hernansartorio:master Mar 8, 2021
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.

handleOutsideClick is throws caught error
2 participants