From cba31dd19184d6ecc4a3710aefdce1c678cbe7b0 Mon Sep 17 00:00:00 2001 From: Hilmi Tolga Sahin Date: Fri, 17 Nov 2017 12:16:48 +0100 Subject: [PATCH] Update on_request_close.md shouldCloseOnOverlayClick note added. --- docs/examples/on_request_close.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/examples/on_request_close.md b/docs/examples/on_request_close.md index dfe60fba..f723a111 100644 --- a/docs/examples/on_request_close.md +++ b/docs/examples/on_request_close.md @@ -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)