Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MouseEvent exception thrown when returning false during onDrag #164

Closed
gregbty opened this issue Jun 6, 2016 · 1 comment
Closed

MouseEvent exception thrown when returning false during onDrag #164

gregbty opened this issue Jun 6, 2016 · 1 comment

Comments

@gregbty
Copy link

gregbty commented Jun 6, 2016

The following code:

var shouldUpdate = _this.props.onDrag(e, coreEvent);
if (shouldUpdate === false) {
    _this.handleDragStop(new MouseEvent());
    return;
}

is causing:

VM48820:1133 Uncaught TypeError: Failed to construct 'MouseEvent': 1 argument required, but only 0 present.

This is occurring when I return false during the onDrag call. I have only tested this in Chrome.

@STRML
Copy link
Collaborator

STRML commented Jun 6, 2016

Thanks for the notification. This is fixed in 2.1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants