diff --git a/src/index.js b/src/index.js index 1e0de72..a856b2d 100644 --- a/src/index.js +++ b/src/index.js @@ -41,7 +41,7 @@ export default class ReactRectangleSelection extends React.Component { } handleMouseDown(e) { - if (this.props.disabled) return; + if (this.props.disabled || (this.props.disabledFn && this.props.disabledFn())) return; let doubleClick = false; clearTimeout(this.animationInProgress); this.animationInProgress = null;