Skip to content

Commit 3256671

Browse files
Jongkeundiasbruno
authored andcommittedJan 16, 2018
[fixed] when ModalPortal is clicked, shouldClose is true if shouldCloseOnOverlayClick is true.
Associate #590
1 parent 79688e8 commit 3256671

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

Diff for: ‎src/components/ModalPortal.js

+3
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ export default class ModalPortal extends Component {
232232
if (this.moveFromContentToOverlay === null) {
233233
this.shouldClose = false;
234234
}
235+
if (this.props.shouldCloseOnOverlayClick) {
236+
this.shouldClose = true;
237+
}
235238
};
236239

237240
handleContentOnMouseUp = () => {

0 commit comments

Comments
 (0)