Skip to content

Commit

Permalink
Update on_request_close.md
Browse files Browse the repository at this point in the history
shouldCloseOnOverlayClick note added.
  • Loading branch information
kucukkanat authored and diasbruno committed Nov 23, 2017
1 parent ff9b5a4 commit cba31dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/examples/on_request_close.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ This example shows how you can use the `onRequestClose` prop with a function to

This is especially important for handling closing the modal via the escape key.

Also more important if `shouldCloseOnOverlayClick` is set to `true`, when clicked on overlay it calls `onRequestClose`.
[](codepen://claydiffrient/KNjVBx)

0 comments on commit cba31dd

Please sign in to comment.