diff --git a/src/components/ModalPortal.js b/src/components/ModalPortal.js index fc3ac193..f77b9cc3 100644 --- a/src/components/ModalPortal.js +++ b/src/components/ModalPortal.js @@ -221,7 +221,7 @@ export default class ModalPortal extends Component { this.shouldClose = false; } - handleCountenOnMouseDown = () => { + handleContentOnMouseDown = () => { this.shouldClose = false; } @@ -277,7 +277,7 @@ export default class ModalPortal extends Component { className={this.buildClassName('content', className)} tabIndex="-1" onKeyDown={this.handleKeyDown} - onMouseDown={this.handleCountenOnMouseDown} + onMouseDown={this.handleContentOnMouseDown} onClick={this.handleContentOnClick} role={this.props.role} aria-label={this.props.contentLabel}