gajus / gajus/react-outside-event

Error on missing onOutsideEvent

Open
#3 3 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
44
Forks
9
PR merge metrics
No merged PRs in 30d

Description

If I wrap an element that does not define an `onOutsideEvent` method, the following error is thrown

```
Component does not define "onOutsideEvent" method.
```
I can fix this by defining an empty method for `onOutsideEvent`. Would it be better to remove this error or issue a warning instead of an error?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the error when a wrapped element lacks an onOutsideEvent method, then inspect the component implementation that raises it. The issue does not name a file or test; work is done only after the project settles whether this should remain an error, become a warning, or be removed, with coverage for that decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.