gajus/react-outside-event

Error on missing onOutsideEvent

Open

#3 aperta il 3 mag 2017

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (9 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (44 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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?

Guida contributor