From 92c23b5bdd6829b02a5d79dee105a00ab5063d3e Mon Sep 17 00:00:00 2001 From: Andrei Daniel Date: Wed, 26 Jul 2017 01:20:55 +0300 Subject: [PATCH] [chore] Mention shouldCloseOnOverlayClick dependency Mention shouldCloseOnOverlayClick dependency on onRequestClose in order to function properly. --- docs/examples/should_close_on_overlay_click.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/examples/should_close_on_overlay_click.md b/docs/examples/should_close_on_overlay_click.md index 92d714df..096fecb8 100644 --- a/docs/examples/should_close_on_overlay_click.md +++ b/docs/examples/should_close_on_overlay_click.md @@ -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 because `react-modal` does not store `isOpen` in its local state. + [](codepen://claydiffrient/woLzwo)