File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -427,13 +427,13 @@ export default class Item extends Component {
427
427
const willBeAbleToResizeRight =
428
428
this . props . selected && this . canResizeRight ( this . props )
429
429
430
- if ( this . props . selected && ! interactMounted ) {
430
+ if ( this . props . selected && ! interactMounted && ! ! this . item ) {
431
431
this . mountInteract ( )
432
432
interactMounted = true
433
433
}
434
434
435
435
if (
436
- interactMounted &&
436
+ interactMounted && ! ! this . item &&
437
437
( couldResizeLeft !== willBeAbleToResizeLeft ||
438
438
couldResizeRight !== willBeAbleToResizeRight )
439
439
) {
@@ -450,7 +450,7 @@ export default class Item extends Component {
450
450
}
451
451
} )
452
452
}
453
- if ( interactMounted && couldDrag !== willBeAbleToDrag ) {
453
+ if ( interactMounted && ! ! this . item && couldDrag !== willBeAbleToDrag ) {
454
454
interact ( this . item ) . draggable ( { enabled : willBeAbleToDrag } )
455
455
}
456
456
}
You can’t perform that action at this time.
0 commit comments