Skip to content

Commit

Permalink
[chore] Mention shouldCloseOnOverlayClick dependency
Browse files Browse the repository at this point in the history
Mention shouldCloseOnOverlayClick dependency on onRequestClose in order to function properly.
  • Loading branch information
whitecrownclown authored and diasbruno committed Jul 27, 2017
1 parent a2d5c4e commit 92c23b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/examples/should_close_on_overlay_click.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

This example shows using `shouldCloseOnOverlayClick` set to `false` so that closing by clicking on the overlay doesn't work.

`shouldCloseOnOverlayClick` requires `onRequestClose` in order to close the <Modal/> because `react-modal` does not store `isOpen` in its local state.

[](codepen://claydiffrient/woLzwo)

0 comments on commit 92c23b5

Please sign in to comment.