boblauer / react-onclickout

An ES6-friendly on-click-outside React component.
MIT License
92 stars 14 forks source link

Fix #4 #5

Closed grassick closed 9 years ago

grassick commented 9 years ago

Fixed bug with phantom click from component creation. Adds a timeout of 0 to let the click be processed first.

boblauer commented 9 years ago

Thanks for the pull! I ended up taking a slightly different approach, to avoid all of the setTimeout calls in the test lib. But the general principal is the same.

Published on npm @2.0.1