yuanyan / boron

A collection of dialog animations with React.js
https://yuanyan.github.io/boron
MIT License
1.48k stars 153 forks source link

Set backdrop onClick event as optional by using backdropEvent prop #16

Closed jesusoterogomez closed 8 years ago

jesusoterogomez commented 8 years ago

By exposing the backdropEvent boolean prop, it becomes optional to have an onClick event on the backdrop of the modal to dismiss it.

<Modal backdropEvent={true} /> enables hide on the backdrop's onClick event. <Modal backdropEvent={false} /> disables hide on the backdrop's onClick event.

Note: Defaults to true to keep current functionality.

P.S: The repository doesn't have a Contributing guideline, so if you need me to change anything or if the changes need to be completely dismissed, just let me know. Thank you for this great library!.