themyth92 / ngx-lightbox

Lightbox2 use with angular >= 5
MIT License
115 stars 70 forks source link

lightbox is opened even for image not found error #45

Closed NareshPalle9 closed 4 years ago

NareshPalle9 commented 4 years ago

How do we handle the lightbox in the event of image not found error comes ?, lightbox is still opened. I want to disable the click on image in the event of image not found. PFA

Screenshot 2020-01-22 at 5 54 14 PM
themyth92 commented 4 years ago

The image is only loaded when u click on opening it so I think the best way to do it is to load your image url first in your code and disable the button.