File tree 1 file changed +0
-13
lines changed
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -266,16 +266,6 @@ export default class ModalPortal extends Component {
266
266
}
267
267
}
268
268
this . shouldClose = null ;
269
- this . moveFromContentToOverlay = null ;
270
- } ;
271
-
272
- handleOverlayOnMouseUp = ( ) => {
273
- if ( this . moveFromContentToOverlay === null ) {
274
- this . shouldClose = false ;
275
- }
276
- if ( this . props . shouldCloseOnOverlayClick ) {
277
- this . shouldClose = true ;
278
- }
279
269
} ;
280
270
281
271
handleContentOnMouseUp = ( ) => {
@@ -286,7 +276,6 @@ export default class ModalPortal extends Component {
286
276
if ( ! this . props . shouldCloseOnOverlayClick && event . target == this . overlay ) {
287
277
event . preventDefault ( ) ;
288
278
}
289
- this . moveFromContentToOverlay = false ;
290
279
} ;
291
280
292
281
handleContentOnClick = ( ) => {
@@ -295,7 +284,6 @@ export default class ModalPortal extends Component {
295
284
296
285
handleContentOnMouseDown = ( ) => {
297
286
this . shouldClose = false ;
298
- this . moveFromContentToOverlay = false ;
299
287
} ;
300
288
301
289
requestClose = event =>
@@ -348,7 +336,6 @@ export default class ModalPortal extends Component {
348
336
style = { { ...overlayStyles , ...this . props . style . overlay } }
349
337
onClick = { this . handleOverlayOnClick }
350
338
onMouseDown = { this . handleOverlayOnMouseDown }
351
- onMouseUp = { this . handleOverlayOnMouseUp }
352
339
aria-modal = "true"
353
340
>
354
341
< div
You can’t perform that action at this time.
0 commit comments