From c6aa7206ba8ecd43e68eddc42da96d7614603207 Mon Sep 17 00:00:00 2001 From: caxco93 Date: Sun, 30 Sep 2018 04:28:59 -0500 Subject: [PATCH] Changed the id reference for the draggable clone It now uses the Gallery Image itself instead of the whole Gallery Item because of styling issues --- packages/block-library/src/gallery/edit.js | 2 +- packages/block-library/src/gallery/gallery-image.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/gallery/edit.js b/packages/block-library/src/gallery/edit.js index 6d04a8ed4b8ee8..c52b1e342d39dd 100644 --- a/packages/block-library/src/gallery/edit.js +++ b/packages/block-library/src/gallery/edit.js @@ -265,7 +265,7 @@ class GalleryEdit extends Component { { dropZone } { images.map( ( img, index ) => { const imageId = `gallery_image_${ clientId }_${ img.id }`; - return
  • + return
  • : ; + const img = url ? { : ; const className = classnames( { 'is-selected': isSelected,