davidtheclark / react-aria-modal

A fully accessible React modal built according WAI-ARIA Authoring Practices
http://davidtheclark.github.io/react-aria-modal/demo/
MIT License
1.04k stars 96 forks source link

Prevent double onExit calls #41

Closed davidtheclark closed 7 years ago

davidtheclark commented 7 years ago

@tristen I think this fixes the problem you found, where close buttons inside modals triggered onExit twice.

I was able to duplicate the behavior in any of the demos. This fixes it.

Could you please review the code and verify that the demos still work as expected?

Then we can release a new version.

tristen commented 7 years ago

Awesome thanks! Tested and this works gr8

davidtheclark commented 7 years ago

Thanks for taking a look. I'll cut a release.