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

Create ClickAwayListener #24

Open
dwidjaja945 opened this issue Nov 11, 2020 · 0 comments
Open

Create ClickAwayListener #24

dwidjaja945 opened this issue Nov 11, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dwidjaja945
Copy link
Contributor

ClickAwayListener

Should wrap a single Dom element (must be able to accept a ref).

When anything but this dom element is clicked, it will trigger listener method.

example usage should be :

<ClickAwayListener onClickAway={handleClickAway} >
    <button>click me</button>
</ClickAwayListener>
@dwidjaja945 dwidjaja945 added the enhancement New feature or request label Nov 11, 2020
@dwidjaja945 dwidjaja945 self-assigned this Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant