Skip to content

Commit

Permalink
Disabled blocks passed to BlockTypesList are no longer draggable (#42751
Browse files Browse the repository at this point in the history
)

* Account for isDisabled when assigning isDraggable

Resolves #42749

* Add space between logical not and value
  • Loading branch information
kjohnson authored Jul 28, 2022
1 parent 1768e73 commit 357f729
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function BlockTypesList( {
) }
onSelect={ onSelect }
onHover={ onHover }
isDraggable={ isDraggable }
isDraggable={ isDraggable && ! item.isDisabled }
isFirst={ i === 0 && j === 0 }
/>
) ) }
Expand Down

0 comments on commit 357f729

Please sign in to comment.