airbnb / airbnb/react-outside-click-handler
feature: Hook version
Open
- Dominant language
- JavaScript
- Stars
- 611
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
I've implemented this as a hook if you're interested in a PR?
```typescript
useOutsideClickHandler(ref, handleOutsideClick, {
useCapture: false,
disabled: false,
});
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Confirm that this old proposal is still wanted before starting. Use the proposed useOutsideClickHandler(ref, handleOutsideClick, { useCapture, disabled }) API as the starting entry point and compare it with the repository’s existing OutsideClickHandler component; done means an agreed hook scope and corresponding implementation and tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100