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!.
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} />
enableshide
on the backdrop's onClick event.<Modal backdropEvent={false} />
disableshide
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!.