Skip to content

Commit f007aeb

Browse files
shivashpdiasbruno
authored andcommitted
[chore] Update description for onRequestClose.
Reference to issue #489
1 parent 67899f0 commit f007aeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: docs/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ import ReactModal from 'react-modal';
3030
*/
3131
onAfterOpen={handleAfterOpenFunc}
3232
/*
33-
Function that will be run when the modal is requested to be closed, prior to actually closing.
33+
Function that will be run when the modal is requested to be closed (either by clicking on overlay or pressing ESC)
34+
Note: It is not called if isOpen is changed by other means.
3435
*/
3536
onRequestClose={handleRequestCloseFunc}
3637
/*

0 commit comments

Comments
 (0)