Skip to content

Commit

Permalink
fix: prevent click event #490
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Jun 17, 2021
1 parent 68f7c39 commit 24c57d8
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -115,6 +115,7 @@ export default class MoveableManager<T = {}>
className={`${prefix("control-box", direction === -1
? "reverse" : "", isDragging ? "dragging" : "")} ${className}`}
{...ableAttributes}
onClick={this.onPreventClick}
portalContainer={portalContainer}
style={{
"position": "absolute",
Expand Down Expand Up @@ -711,6 +712,9 @@ export default class MoveableManager<T = {}>
protected updateCheckInput() {
this.targetGesto && (this.targetGesto.options.checkInput = this.props.checkInput);
}
protected onPreventClick = (e: any) => {
e.stopPropagation();
}
}

/**
Expand Down

0 comments on commit 24c57d8

Please sign in to comment.