ngx-gallery icon indicating copy to clipboard operation
ngx-gallery copied to clipboard

previewDownload button does not download content if the preview is an image

Open arturmikheyankou opened this issue 5 years ago • 0 comments
trafficstars

Hi there.

I encountered one situation when I can't download an image from the preview using the previewDownload button. Trying to download sends me to a new tab with this image. I can assume that the fact is that the download attribute of a link that contains an image does not contain a link to the image. Could you take a look at this problem, I think it's a quick task for you.

Example:

<a _ngcontent-c34="" aria-hidden="true" class="ngx-gallery-icon ng-star-inserted" download="" href="https://...response-content-type=image%2Fjpeg">
   <i _ngcontent-c34="" class="ngx-gallery-icon-content fa fa-arrow-circle-down"></i>
</a>
Снимок экрана 2020-04-30 в 23 24 25

There's a note in the docs for this attribute: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

Best regards, Artur

arturmikheyankou avatar May 01 '20 10:05 arturmikheyankou