theKashey / react-focus-on

🎯 Solution for WAI ARIA compatible modal dialogs or full-screen tasks, you were looking for
MIT License
336 stars 14 forks source link

Forward the event to the onClickOutside handler #32

Closed magnusottosson closed 4 years ago

magnusottosson commented 4 years ago

I added the event argument to the onCLickOutside handler so that the user can enable preventDefault etc... I had an issue where the mouse down event interfered with the click on an outside element.

theKashey commented 4 years ago

👍 a common issue.