File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ v3.1.4 - Fri, 24 Nov 2017 14:26:59 UTC
2+ --------------------------------------
3+
4+ - [ c1e535f] ( ../../commit/c1e535f ) [ chore] changelog writer.
5+ - [ a296627] ( ../../commit/a296627 ) fix: prevent mouse event when shouldCloseOnOverlayClick = false.
6+ - [ cba31dd] ( ../../commit/cba31dd ) Update on_request_close.md
7+
8+
19v3.1.3 - Wed, 22 Nov 2017 16:38:06 UTC
210--------------------------------------
311
Original file line number Diff line number Diff line change 11{
22 "name" : " react-modal" ,
3- "version" : " 3.1.3 " ,
3+ "version" : " 3.1.4 " ,
44 "homepage" : " https://github.com/reactjs/react-modal" ,
55 "authors" : [
66 " Ryan Florence" ,
Original file line number Diff line number Diff line change @@ -1633,7 +1633,10 @@ var ModalPortal = function (_Component) {
16331633 _this . shouldClose = false ;
16341634 } ;
16351635
1636- _this . handleOverlayOnMouseDown = function ( ) {
1636+ _this . handleOverlayOnMouseDown = function ( event ) {
1637+ if ( ! _this . props . shouldCloseOnOverlayClick ) {
1638+ event . preventDefault ( ) ;
1639+ }
16371640 _this . moveFromContentToOverlay = false ;
16381641 } ;
16391642
You can’t perform that action at this time.
0 commit comments