Skip to content

Commit

Permalink
fix: short-circuit handleInteractionEnd when no action is in progress (
Browse files Browse the repository at this point in the history
  • Loading branch information
bs85 authored and jquense committed Nov 19, 2018
1 parent 27a2656 commit 7a48b6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/addons/dragAndDrop/withDragAndDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export default function withDragAndDrop(Calendar) {
handleInteractionEnd = interactionInfo => {
const { action, event } = this.state

if (!action) return

this.setState({
action: null,
event: null,
Expand Down

0 comments on commit 7a48b6a

Please sign in to comment.