File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ class Dnd extends React.Component {
68
68
69
69
resizeEvent = ( { event, start, end } ) => {
70
70
const { events } = this . state
71
-
72
71
const nextEvents = events . map ( existingEvent => {
73
72
return existingEvent . id == event . id
74
73
? { ...existingEvent , start, end }
Original file line number Diff line number Diff line change @@ -161,15 +161,20 @@ class EventContainerWrapper extends React.Component {
161
161
selector . on ( 'select' , point => {
162
162
const bounds = getBoundsForNode ( node )
163
163
isBeingDragged = false
164
- if ( ! this . state . event || ! pointInColumn ( bounds , point ) ) return
165
- this . handleInteractionEnd ( )
164
+ const { dragAndDropAction } = this . context . draggable
165
+ if ( dragAndDropAction . action === 'resize' ) {
166
+ this . handleInteractionEnd ( )
167
+ } else if ( ! this . state . event || ! pointInColumn ( bounds , point ) ) {
168
+ return
169
+ } else {
170
+ this . handleInteractionEnd ( )
171
+ }
166
172
} )
167
173
168
174
selector . on ( 'click' , ( ) => {
169
175
if ( isBeingDragged ) this . reset ( )
170
176
this . context . draggable . onEnd ( null )
171
177
} )
172
-
173
178
selector . on ( 'reset' , ( ) => {
174
179
this . reset ( )
175
180
this . context . draggable . onEnd ( null )
@@ -179,7 +184,6 @@ class EventContainerWrapper extends React.Component {
179
184
handleInteractionEnd = ( ) => {
180
185
const { resource } = this . props
181
186
const { event } = this . state
182
-
183
187
this . reset ( )
184
188
185
189
this . context . draggable . onEnd ( {
You can’t perform that action at this time.
0 commit comments