From 73867f6592a61444834ef15a4c8fddfbb60d8e06 Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Tue, 17 Sep 2019 18:26:12 -0700 Subject: [PATCH] fix(vx-drag): simplify handleDragEnd setState --- packages/vx-drag/src/Drag.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/vx-drag/src/Drag.tsx b/packages/vx-drag/src/Drag.tsx index 3cd95af17..5fadd71fa 100644 --- a/packages/vx-drag/src/Drag.tsx +++ b/packages/vx-drag/src/Drag.tsx @@ -99,9 +99,7 @@ export default class Drag extends React.Component { event.persist(); this.setState( - () => ({ - isDragging: false, - }), + { isDragging: false }, onDragEnd && (() => { onDragEnd({ ...this.state, event });