Skip to content

Commit 9661032

Browse files
committed
fix componentDidUpdate namespace-ee#484
1 parent 40bff38 commit 9661032

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/items/Item.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ export default class Item extends Component {
416416
this.cacheDataFromProps(this.props)
417417

418418
let { interactMounted } = this.state
419-
const couldDrag = this.props.selected && this.canMove(this.props)
419+
const couldDrag = prevProps.selected && this.canMove(prevProps)
420420
const couldResizeLeft =
421-
this.props.selected && this.canResizeLeft(this.props)
421+
prevProps.selected && this.canResizeLeft(prevProps)
422422
const couldResizeRight =
423-
this.props.selected && this.canResizeRight(this.props)
423+
prevProps.selected && this.canResizeRight(prevProps)
424424
const willBeAbleToDrag = this.props.selected && this.canMove(this.props)
425425
const willBeAbleToResizeLeft =
426426
this.props.selected && this.canResizeLeft(this.props)

0 commit comments

Comments
 (0)