Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 497 Bytes

should_close_on_overlay_click.md

File metadata and controls

8 lines (6 loc) · 497 Bytes

Using shouldCloseOnOverlayClick

When shouldCloseOnOverlayClick is true (default value for this property), it requires the onRequestClose to be defined in order to close the . This is due to the fact that the react-modal doesn't store the isOpen on its state (only for the internal portal (see ModalPortal.js).

shouldCloseOnOverlayClick example