You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.
With #20 there seems to be an issue with the reinstantiation of ImageViewer.
The update of the [images]-parameter lead to the following error:
ImageViewComponent.html:2 ERROR Error: An image viewer is already being initiated on the element.
at ImageViewer._findContainerAndImageSrc (ImageViewer.js:239)
at new ImageViewer (ImageViewer.js:190)
at ImageViewerComponent.inicializarImageViewer (ng2-image-viewer.umd.js:215)
at ImageViewerComponent.imagesChange (ng2-image-viewer.umd.js:186)
at ImageViewerComponent.ngOnChanges (ng2-image-viewer.umd.js:97)
The text was updated successfully, but these errors were encountered:
Good night,
I just released the 3.0.4 version
Try again with it please.
If you're adding images on ngOnInit, then you can use the normal push, but if you're adding images lazily: Remember to add lazy images like this:
Thank you for the update!
The update of the [images]-parameter is working.
During testing I encountered the following error, which only occurs occasionally:
ERROR TypeError: Cannot read property 'removeChild' of null
at util.js:166
at Array.forEach ()
at remove (util.js:165)
at HTMLImageElement.onHighResImageLoad (ImageViewer.js:777)
I couldn't find the cause. A workaround would be to omit the second (optional) parameter to the iv-viewer in load/show (and not to add the same image in the high resolution parameter).
But then styles for .iv-large-image
With #20 there seems to be an issue with the reinstantiation of ImageViewer.
The update of the [images]-parameter lead to the following error:
ImageViewComponent.html:2 ERROR Error: An image viewer is already being initiated on the element.
at ImageViewer._findContainerAndImageSrc (ImageViewer.js:239)
at new ImageViewer (ImageViewer.js:190)
at ImageViewerComponent.inicializarImageViewer (ng2-image-viewer.umd.js:215)
at ImageViewerComponent.imagesChange (ng2-image-viewer.umd.js:186)
at ImageViewerComponent.ngOnChanges (ng2-image-viewer.umd.js:97)
The text was updated successfully, but these errors were encountered: