From f007aeb7336bc8a47bb6b8c7919ed3a077fbd87d Mon Sep 17 00:00:00 2001 From: Shiva Pandey Date: Thu, 7 Sep 2017 23:13:23 +0545 Subject: [PATCH] [chore] Update description for onRequestClose. Reference to issue #489 --- docs/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index d75ebd1c..e05c0d2a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -30,7 +30,8 @@ import ReactModal from 'react-modal'; */ onAfterOpen={handleAfterOpenFunc} /* - Function that will be run when the modal is requested to be closed, prior to actually closing. + Function that will be run when the modal is requested to be closed (either by clicking on overlay or pressing ESC) + Note: It is not called if isOpen is changed by other means. */ onRequestClose={handleRequestCloseFunc} /*