Skip to content

Commit c8e32f5

Browse files
acemacIlaiwi
authored andcommitted
#484 Add check to if item can be moved (#485)
**Issue Number** #484 **Overview of PR** Checks canMove on initial interact mount. _Don't forget to update the CHANGELOG.md file with any changes that are in this PR_
1 parent 40bff38 commit c8e32f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/items/Item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export default class Item extends Component {
237237
this.props.selected && (this.canResizeLeft() || this.canResizeRight())
238238
})
239239
.draggable({
240-
enabled: this.props.selected
240+
enabled: this.props.selected && this.canMove()
241241
})
242242
.styleCursor(false)
243243
.on('dragstart', e => {

0 commit comments

Comments
 (0)