Skip to content

Commit 92c23b5

Browse files
whitecrownclowndiasbruno
authored andcommitted
[chore] Mention shouldCloseOnOverlayClick dependency
Mention shouldCloseOnOverlayClick dependency on onRequestClose in order to function properly.
1 parent a2d5c4e commit 92c23b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/examples/should_close_on_overlay_click.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

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

5+
`shouldCloseOnOverlayClick` requires `onRequestClose` in order to close the <Modal/> because `react-modal` does not store `isOpen` in its local state.
6+
57
[](codepen://claydiffrient/woLzwo)

0 commit comments

Comments
 (0)