Skip to content

Pass event to onClickAway callback

Compare
Choose a tag to compare
@ooade ooade released this 08 May 17:56

Passing the event in the callback ensures that you could make use of the event as you could do on every event handlers.

It makes it possible to do stuff like event.preventDefault() and all.

Thanks to @Naismith for bringing it up and implementing! 🎉