Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Pass isBlockSelected prop to gallery-image
  • Loading branch information
mkevins committed Dec 4, 2019
commit 3b823dad51abd4542740e50946e51600fa18276d
1 change: 1 addition & 0 deletions packages/block-library/src/gallery/gallery.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const Gallery = ( props ) => {
isFirstItem={ index === 0 }
isLastItem={ ( index + 1 ) === images.length }
isSelected={ isSelected && selectedImage === index }
isBlockSelected={ isSelected }
onMoveBackward={ onMoveBackward( index ) }
onMoveForward={ onMoveForward( index ) }
onRemove={ onRemoveImage( index ) }
Expand Down