pqina / filepond-plugin-image-preview

🖼 Show a preview for images dropped on FilePond

Home Page:https://pqina.nl/filepond

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grid not visible

NielsLeenheer opened this issue · comments

When grid is enabled using the imagePreviewTransparencyIndicator property, it does not show up. The reason is an error in CSS file.

The CSS file contains the following selector:
.filepond--image-preview[data-transparency-indicator='grid'] img, .filepond--image-preview[data-transparency-indicator='grid'] canvas:
https://github.com/pqina/filepond-plugin-image-preview/blob/master/src/css/image-preview.scss#L17

So it assumes the dataset is on the filepond--image-preview element. But actually, the dataset is on the filepond--image-clip element, a child element of the filepond--image-preview element.

commented

Thanks for reporting @NielsLeenheer, fixed in 4.6.2 👍