From fd8d4d2770eeca99a19f2aea00b8860e0b857551 Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Thu, 30 Jul 2015 20:59:03 -0400 Subject: [PATCH] [fixed] regression when clicking "static" modal backdrops Not sure where this fell to the floor, but clearly we have no tests around it (will get to that) --- src/Modal.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Modal.js b/src/Modal.js index 8be7f96032..ed4db06466 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -216,10 +216,14 @@ const Modal = React.createClass({ let { animation, bsClass } = this.props; let duration = Modal.BACKDROP_TRANSITION_DURATION; + // Don't handle clicks for "static" backdrops + let onClick = this.props.backdrop === true ? + this.handleBackdropClick : null; + let backdrop = (
);